Skip to content

Commit 2a729c0

Browse files
committed
Don't persist credentials after using actions/checkout
See: https://docs.zizmor.sh/audits/#artipacked
1 parent 3a2272d commit 2a729c0

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release-github.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
contents: write
1414
steps:
1515
- uses: actions/checkout@v4
16+
with:
17+
persist-credentials: false
1618
- uses: cucumber/action-create-github-release@cf2c6f77ba35d2424362e83393a1c4c004cf2ddb # v1.1.1
1719
with:
1820
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-ruby.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
environment: Release
1313
steps:
1414
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
15+
with:
16+
persist-credentials: false
1517
- uses: cucumber/action-publish-rubygem@d8918cbdee789cfc78f346a96a59596b87795be1 # v1.0.0
1618
with:
1719
rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
runs-on: ${{ matrix.os }}
2727
steps:
2828
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
29+
with:
30+
persist-credentials: false
2931
- uses: ./.github/actions/test-ruby
3032
with:
3133
ruby-version: ${{ matrix.ruby }}

0 commit comments

Comments
 (0)