Skip to content

Commit 7207b68

Browse files
committed
Pin all actions to SHA hashes and remove blanket zizmor disables
Replace tag references with SHA-pinned references for all actions. Replace blanket unpinned-uses and secrets-outside-env disables with targeted inline ignores where appropriate. Remove .zizmor.yml since no global rule overrides are needed.
1 parent 87746e2 commit 7207b68

5 files changed

Lines changed: 16 additions & 23 deletions

File tree

.github/workflows/cd.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ name: CD
33
on:
44
workflow_call:
55
jobs:
6-
deploy:
6+
deploy: # zizmor: ignore[secrets-outside-env] reusable workflow; environments are managed by callers
77
runs-on: ubuntu-latest
88
if: ${{ github.event.workflow_run.conclusion == 'success' }}
99
steps:
10-
- uses: actions/checkout@v6
10+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1111
with:
1212
persist-credentials: false
1313
- name: Tag and Push Gem
1414
id: tag-and-push-gem
15-
uses: discourse/publish-rubygems-action@v3
15+
uses: discourse/publish-rubygems-action@4bd305c65315cb691bad1e8de97a87aaf29a0a85 # v3
1616
env:
1717
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
1818
GIT_EMAIL: ${{secrets.GUSTO_GIT_EMAIL}}
@@ -24,12 +24,12 @@ jobs:
2424
if: ${{ steps.tag-and-push-gem.outputs.new_version == 'true' }}
2525
env:
2626
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
notify_on_failure:
27+
notify_on_failure: # zizmor: ignore[secrets-outside-env] reusable workflow; environments are managed by callers
2828
runs-on: ubuntu-latest
2929
needs: [deploy]
3030
if: ${{ failure() && github.ref == 'refs/heads/main' }}
3131
steps:
32-
- uses: slackapi/slack-github-action@v3
32+
- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3
3333
with:
3434
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
3535
webhook-type: incoming-webhook

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ jobs:
2727
BUNDLE_GEMFILE: Gemfile
2828
name: "Run tests: Ruby ${{ matrix.ruby }}"
2929
steps:
30-
- uses: actions/checkout@v6
30+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3131
with:
3232
persist-credentials: false
3333
- name: Install ripgrep
3434
run: sudo apt-get install -y ripgrep
3535
- name: Set up Ruby ${{ matrix.ruby }}
36-
uses: ruby/setup-ruby@v1
36+
uses: ruby/setup-ruby@4c56a21280b36d862b5fc31348f463d60bdc55d5 # v1
3737
with:
3838
bundler-cache: true
3939
ruby-version: ${{ matrix.ruby }}
@@ -44,11 +44,11 @@ jobs:
4444
name: "Type Check"
4545
runs-on: ubuntu-latest
4646
steps:
47-
- uses: actions/checkout@v6
47+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4848
with:
4949
persist-credentials: false
5050
- name: Set up Ruby
51-
uses: ruby/setup-ruby@v1
51+
uses: ruby/setup-ruby@4c56a21280b36d862b5fc31348f463d60bdc55d5 # v1
5252
with:
5353
bundler-cache: true
5454
ruby-version: 3.4
@@ -58,23 +58,23 @@ jobs:
5858
runs-on: ubuntu-latest
5959
name: "Linter"
6060
steps:
61-
- uses: actions/checkout@v6
61+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6262
with:
6363
persist-credentials: false
6464
- name: Set up Ruby
65-
uses: ruby/setup-ruby@v1
65+
uses: ruby/setup-ruby@4c56a21280b36d862b5fc31348f463d60bdc55d5 # v1
6666
with:
6767
bundler-cache: true
6868
ruby-version: 3.4
6969
- name: Run linter
7070
# zizmor: ignore[template-injection] workflow_call inputs are controlled by the caller
7171
run: ${{ inputs.linter-command }}
72-
notify_on_failure:
72+
notify_on_failure: # zizmor: ignore[secrets-outside-env] reusable workflow; environments are managed by callers
7373
runs-on: ubuntu-latest
7474
needs: [run_tests, static_type_check, run_linter]
7575
if: ${{ failure() && github.ref == 'refs/heads/main' }}
7676
steps:
77-
- uses: slackapi/slack-github-action@v3
77+
- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3
7878
with:
7979
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
8080
webhook-type: incoming-webhook

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
stale:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/stale@v10
9+
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10
1010
with:
1111
stale-issue-message: 'This issue has been marked stale because it has been open for six months with no activity. To prevent this issue from automatically being closed in one week, update it or remove the stale label.'
1212
stale-pr-message: 'This PR has been marked stale because it has been open for six months with no activity. To prevent this PR from automatically being closed in one week, update it or remove the stale label.'

.github/workflows/zizmor.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ jobs:
1717
actions: read
1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v6
20+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2121
with:
2222
persist-credentials: false
2323

2424
- name: Run zizmor
25-
uses: zizmorcore/zizmor-action@v0.5.3
26-
with:
27-
config: .zizmor.yml
25+
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3

.zizmor.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)