Skip to content

Commit

Permalink
Do not persist github actions credentials (#228)
Browse files Browse the repository at this point in the history
Identified with the help of zizmor (https://github.com/woodruffw/zizmor)
  • Loading branch information
bradlarsen authored Oct 28, 2024
1 parent 1743d4b commit 30369fa
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install dependencies
run: ${{ matrix.install_dependencies }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -169,4 +171,4 @@ jobs:
- name: Inspect Docker image
run: |
docker buildx imagetools inspect ${{ matrix.image }}:${{ steps.metadata.outputs.version }}
docker buildx imagetools inspect "${{ matrix.image }}:${{ steps.metadata.outputs.version }}"
4 changes: 4 additions & 0 deletions .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install dependencies
run: ${{ matrix.install_dependencies }}
Expand Down Expand Up @@ -105,6 +107,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- uses: docker/setup-buildx-action@v3

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/rust-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install system dependencies
run: |
Expand Down Expand Up @@ -74,6 +76,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Rust toolchain
id: install-rust-toolchain
Expand Down

0 comments on commit 30369fa

Please sign in to comment.