Skip to content

Commit

Permalink
Don't persist credentials for actions/checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG committed Jan 23, 2025
1 parent d38645c commit b0c9cfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request && github.event.pull_request.head.sha || github.sha }}
persist-credentials: false

- name: Install GCC Problem Matcher
uses: root-project/gcc-problem-matcher-improved@c45ac8b7c1589268fdef2f7f5772375aa96ab210
Expand Down Expand Up @@ -172,6 +173,7 @@ jobs:
repository: "${{ secrets.TESTFILE_REPO }}"
token: "${{ secrets.TESTFILE_REPO_TOKEN }}"
path: "testfiles"
persist-credentials: false

- name: Prepare Test Files
if: ${{ inputs.test-suite && steps.cache-test-files.outputs.cache-hit != 'true' }}
Expand Down

0 comments on commit b0c9cfe

Please sign in to comment.