Skip to content

Commit

Permalink
fix(ci): don't persist credentials in actions/checkout
Browse files Browse the repository at this point in the history
Identified with [zizmor](https://woodruffw.github.io/zizmor/).
It's also possible to [run zizmore in ci](https://woodruffw.github.io/zizmor/usage/#use-in-github-actions),
but I didn't implement this because it requires a GITHUB_TOKEN secret.
  • Loading branch information
stefanboca committed Jan 11, 2025
1 parent 64cb887 commit 2ff9d4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
contents: read
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:

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

- name: Install Rust
run: |
Expand Down Expand Up @@ -116,6 +118,8 @@ jobs:
contents: read
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4

- name: Build
Expand Down

0 comments on commit 2ff9d4f

Please sign in to comment.