From cf6fa08b1b6f2b070fa69de4f151f461c4330185 Mon Sep 17 00:00:00 2001 From: Jared Hatfield Date: Mon, 9 Dec 2024 20:12:13 -0500 Subject: [PATCH] Added persist-credentials: false --- .github/workflows/build.yml | 5 ++++- .github/workflows/codeql.yml | 2 ++ .github/workflows/release.yml | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4439f80..273b513 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,10 @@ jobs: timeout-minutes: 30 steps: - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 + with: + persist-credentials: false - name: Set up JDK 17 uses: actions/setup-java@v4 with: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a6e473e..3cb16ef 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -49,6 +49,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + persist-credentials: false # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cafe2cc..e331458 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,8 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v4 + with: + persist-credentials: false - name: Set up Java for publishing to Maven Central Repository uses: actions/setup-java@v4