Skip to content

Commit 393e320

Browse files
authored
Merge pull request #61 from iamchathu/setup-zizmor
ci: 👷 setup zizmor and fix issues
2 parents 2760967 + 0147830 commit 393e320

3 files changed

Lines changed: 34 additions & 7 deletions

File tree

.github/workflows/deploy-gh-pages.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,24 @@ jobs:
2222
# Job steps
2323
steps:
2424
# Manual Checkout
25-
- uses: actions/checkout@v6
25+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
26+
with:
27+
persist-credentials: false
2628

2729
# Install pnpm
2830
- name: Install pnpm
29-
uses: pnpm/action-setup@v4
31+
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
3032
with:
3133
version: 10
3234

3335
# Set up Node
34-
- uses: actions/setup-node@v6
36+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
3537
with:
3638
node-version: '24'
3739
cache: 'pnpm'
3840

3941
#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
40-
- uses: bitovi/github-actions-storybook-to-github-pages@v1.0.4
42+
- uses: bitovi/github-actions-storybook-to-github-pages@ddd9d35f670cceedd2bfc444be681001b0709730 # v1.0.4
4143
id: build-publish
4244
with:
4345
install_command: pnpm install

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,18 @@ jobs:
2020
id-token: write # to enable use of OIDC for npm provenance
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v6
23+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2424
with:
2525
fetch-depth: 0
26+
persist-credentials: false
2627

2728
- name: Install pnpm
28-
uses: pnpm/action-setup@v4
29+
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
2930
with:
3031
version: 10
3132

3233
- name: Setup Node.js
33-
uses: actions/setup-node@v6
34+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
3435
with:
3536
node-version: 24
3637
cache: 'pnpm'

.github/workflows/zizmor.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: GitHub Actions Security Analysis with zizmor
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "**" ]
8+
9+
permissions: {}
10+
11+
jobs:
12+
zizmor:
13+
name: Run zizmor 🌈
14+
runs-on: ubuntu-latest
15+
permissions:
16+
security-events: write
17+
steps:
18+
- name: Checkout repo
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+
with:
21+
persist-credentials: false
22+
23+
- name: Run zizmor
24+
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2

0 commit comments

Comments
 (0)