Skip to content

Commit c7aee3e

Browse files
committed
chore(actions): address zizmor findings
This PR is an auto-generated attempt to address zizmor findings. It may not catch everything, and should be reviewed by repository owners. If it is unhelpful, feel free to close the PR and address separately. This PR was generated by running `zizmor --fix=all --gh-token=$(gh auth token) ./.github/workflows`. See go/github-zizmor-help for instructions to install and run. If this PR is helpful, feel free to approve and merge, or edit/modify as needed to get it to the right state. Repository owners must ultimately ensure compliance by 2026-07-13. The purpose of this PR is to provide some assistance with achieving that as a first pass. This will become a blocking check for new changes to github workflows on 2026-07-13 within the `googleapis` org. There may be some ignored findings (with the comment `# zizmor: ignore[...]`), which you may fix if feasible.
1 parent 9e92f53 commit c7aee3e

4 files changed

Lines changed: 42 additions & 16 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
permissions:
2+
contents: read
3+
14
on:
25
push:
36
branches:
@@ -12,8 +15,10 @@ jobs:
1215
matrix:
1316
node: [18, 20, 22]
1417
steps:
15-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
16-
- uses: actions/setup-node@v6
18+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
19+
with:
20+
persist-credentials: false
21+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
1722
with:
1823
node-version: ${{ matrix.node }}
1924
- run: node --version
@@ -30,8 +35,10 @@ jobs:
3035
windows:
3136
runs-on: windows-latest
3237
steps:
33-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
34-
- uses: actions/setup-node@v6
38+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
39+
with:
40+
persist-credentials: false
41+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
3542
with:
3643
node-version: 22
3744
- run: npm install
@@ -41,17 +48,21 @@ jobs:
4148
lint:
4249
runs-on: ubuntu-latest
4350
steps:
44-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
45-
- uses: actions/setup-node@v6
51+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
52+
with:
53+
persist-credentials: false
54+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
4655
with:
4756
node-version: 22
4857
- run: npm install
4958
- run: npm run lint
5059
docs:
5160
runs-on: ubuntu-latest
5261
steps:
53-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
54-
- uses: actions/setup-node@v6
62+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
63+
with:
64+
persist-credentials: false
65+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
5566
with:
5667
node-version: 22
5768
- run: npm install

.github/workflows/issues-no-repro.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
permissions:
2+
contents: read
3+
14
name: invalid_link
25
on:
36
issues:
@@ -10,13 +13,15 @@ jobs:
1013
issues: write
1114
pull-requests: write
1215
steps:
13-
- uses: actions/checkout@v5
14-
- uses: actions/setup-node@v6
16+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
17+
with:
18+
persist-credentials: false
19+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
1520
with:
1621
node-version: 18
1722
- run: npm install
1823
working-directory: ./.github/scripts
19-
- uses: actions/github-script@v8
24+
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
2025
with:
2126
script: |
2227
const script = require('./.github/scripts/close-invalid-link.cjs')

.github/workflows/response.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
permissions:
2+
contents: read
3+
14
name: no_response
25
on:
36
schedule:
@@ -13,8 +16,10 @@ jobs:
1316
issues: write
1417
pull-requests: write
1518
steps:
16-
- uses: actions/checkout@v5
17-
- uses: actions/github-script@v7
19+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
20+
with:
21+
persist-credentials: false
22+
- uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
1823
with:
1924
script: |
2025
const script = require('./.github/scripts/close-unresponsive.cjs')
@@ -27,8 +32,10 @@ jobs:
2732
issues: write
2833
pull-requests: write
2934
steps:
30-
- uses: actions/checkout@v5
31-
- uses: actions/github-script@v7
35+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
36+
with:
37+
persist-credentials: false
38+
- uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
3239
with:
3340
script: |
3441
const script = require('./.github/scripts/remove-response-label.cjs')

.github/workflows/update-apis.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
permissions:
2+
contents: read
3+
14
on:
25
schedule:
36
- cron: "0 1 * * *"
@@ -7,7 +10,7 @@ jobs:
710
update-apis:
811
runs-on: ubuntu-latest
912
steps:
10-
- uses: actions/setup-node@v6
13+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
1114
with:
1215
node-version: 22
1316
- run: gh repo fork googleapis/google-api-nodejs-client --fork-name google-api-nodejs-client-autodisco --clone

0 commit comments

Comments
 (0)