Skip to content

Commit

Permalink
Set persist-credentials to false on checkout action
Browse files Browse the repository at this point in the history
  • Loading branch information
lepapareil committed Jan 9, 2025
1 parent 7a3da13 commit 2be16ae
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/accept-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ env.BASE_REF }}
token: ${{ secrets.HURL_BOT_TOKEN }}
fetch-depth: 0
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/auto-close-inactive-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
- name: Auto close inactive PR
run: .github/workflows/bin/auto-close-inactive-pr.sh --github-project-path "${REPO}" --github-token "${GITHUB_TOKEN}" --max-days-of-inactivity 15

1 change: 1 addition & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}

- name: Shellcheck
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false

- name: Install Prerequisites
run: bin/install_prerequisites_ubuntu.sh
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/extra-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
fetch-depth: 1
ref: ${{ github.event.inputs.set-release-version }}
- name: Check if branch is a published release
Expand All @@ -52,6 +53,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
fetch-depth: 1
ref: ${{ github.event.inputs.set-release-version }}
- name: Push to chocolatey
Expand All @@ -69,6 +71,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
fetch-depth: 1
ref: ${{ github.event.inputs.set-release-version }}
- name: Push to winget
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Install prerequisites
run: bin/install_prerequisites_ubuntu.sh
Expand Down Expand Up @@ -64,6 +65,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Set up QEMU
uses: docker/[email protected]
Expand Down Expand Up @@ -113,6 +115,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Retrieve release-generic-linux-x64-artifacts
uses: actions/[email protected]
Expand Down Expand Up @@ -166,6 +169,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Retrieve release-generic-linux-x64-artifacts
uses: actions/[email protected]
Expand Down Expand Up @@ -217,6 +221,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Retrieve release-generic-linux-x64-artifacts
uses: actions/[email protected]
Expand Down Expand Up @@ -268,6 +273,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Retrieve release-generic-linux-x64-artifacts
uses: actions/[email protected]
Expand Down Expand Up @@ -321,6 +327,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Set up Docker Buildx
uses: docker/[email protected]
Expand Down Expand Up @@ -392,6 +399,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Install Prerequisites
run: bin/install_prerequisites_ubuntu.sh
Expand Down Expand Up @@ -443,6 +451,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Install Prerequisites
run: |
Expand Down Expand Up @@ -492,6 +501,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Install Prerequisites
run: |
Expand Down Expand Up @@ -547,6 +557,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Install Rust
run: |
Expand Down Expand Up @@ -606,6 +617,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- uses: actions/[email protected]
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false

- name: Check release pull request existence
id: check-release-pull-request-existence
Expand Down Expand Up @@ -170,6 +172,8 @@ jobs:
- name: Checkout repository
if: github.ref_name == 'master'
uses: actions/[email protected]
with:
persist-credentials: false

- name: Create release branch
if: github.ref_name == 'master'
Expand All @@ -187,6 +191,7 @@ jobs:
- name: Checkout new release branch
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ needs.set-context.outputs.release_branch }}

- name: Check CHANGELOG
Expand Down Expand Up @@ -293,6 +298,7 @@ jobs:
- name: Checkout new release branch
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ needs.set-context.outputs.release_branch }}

- name: Init git bot context
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Install Prerequisites
run: bin/install_prerequisites_ubuntu.sh
Expand Down Expand Up @@ -54,6 +55,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Install Rust
run: bin/install_rust.sh
Expand All @@ -75,6 +77,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Install Prerequisites
run: bin/install_prerequisites_ubuntu.sh
Expand Down Expand Up @@ -119,6 +122,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Install Prerequisites
run: bin/install_prerequisites_ubuntu.sh
Expand Down Expand Up @@ -160,6 +164,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Build, Test units and Integration tests
uses: addnab/docker-run-action@v3
Expand Down Expand Up @@ -201,6 +206,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Build, Test units and Integration tests
uses: addnab/docker-run-action@v3
Expand Down Expand Up @@ -249,6 +255,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Build, Test units and Integration tests
uses: addnab/docker-run-action@v3
Expand Down Expand Up @@ -299,6 +306,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Install Prerequisites
run: |
Expand Down Expand Up @@ -347,6 +355,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Install Prerequisites
run: |
Expand Down Expand Up @@ -398,6 +407,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Install Rust
run: |
Expand Down Expand Up @@ -439,7 +449,8 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
ref: ${{ inputs.branch }}
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Setup wsl Ubuntu
uses: Vampire/[email protected]
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: master
token: ${{ secrets.HURL_BOT_TOKEN }}

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-branch-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ inputs.branch }}

- name: Init bot branch name
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
ref: master

- name: Crates update
Expand Down

0 comments on commit 2be16ae

Please sign in to comment.