Skip to content

Commit 3c352cd

Browse files
committed
Revert "chore(actions): address zizmor findings"
This reverts commit c8028e1.
1 parent c8028e1 commit 3c352cd

9 files changed

Lines changed: 15 additions & 49 deletions

.github/workflows/bigtable-conformance.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
# Github action job to test core java library features on
1515
# downstream client libraries before they are released.
1616
on:
17-
18-
permissions:
19-
contents: read
2017
push:
2118
branches:
2219
- main

.github/workflows/build-pr.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Build and test PR (changed APIs only)
22

3-
permissions:
4-
contents: read
5-
63
on: [pull_request]
74

85
jobs:
@@ -16,14 +13,13 @@ jobs:
1613
regex: ["'Google\\.Cloud\\.[A-L].*'", "'Google\\.Cloud\\.[M-Z].*'", "'!Google\\.Cloud'"]
1714

1815
steps:
19-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
16+
- uses: actions/checkout@v7
2017
with:
2118
submodules: true
2219
fetch-depth: 100
23-
persist-credentials: false
2420

2521
- name: Setup .NET
26-
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5
22+
uses: actions/setup-dotnet@v5
2723
with:
2824
dotnet-version: |
2925
6.0.x

.github/workflows/build-push.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Build push
22

3-
permissions:
4-
contents: read
5-
63
on:
74
push:
85
branches:
@@ -16,13 +13,12 @@ jobs:
1613
DOTNET_NOLOGO: true
1714

1815
steps:
19-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
16+
- uses: actions/checkout@v7
2017
with:
2118
submodules: true
22-
persist-credentials: false
2319

2420
- name: Setup .NET
25-
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5
21+
uses: actions/setup-dotnet@v5
2622
with:
2723
dotnet-version: |
2824
6.0.x

.github/workflows/build-tools.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Build and test PR (tools)
22

3-
permissions:
4-
contents: read
5-
63
on: [pull_request]
74

85
jobs:
@@ -13,13 +10,12 @@ jobs:
1310
DOTNET_NOLOGO: true
1411

1512
steps:
16-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
13+
- uses: actions/checkout@v7
1714
with:
1815
submodules: true
19-
persist-credentials: false
2016

2117
- name: Setup .NET
22-
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5
18+
uses: actions/setup-dotnet@v5
2319
with:
2420
dotnet-version: |
2521
8.0.x
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Check that apis.json is valid JSON
22

3-
permissions:
4-
contents: read
5-
63
on: [pull_request, push]
74

85
jobs:
@@ -11,9 +8,7 @@ jobs:
118
runs-on: ubuntu-latest
129

1310
steps:
14-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
15-
with:
16-
persist-credentials: false
11+
- uses: actions/checkout@v7
1712

1813
- name: Validate API catalog
1914
run: python -c 'import json; json.load(open("generator-input/apis.json", "r"))'
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Check that all pre and post-generation scripts are executable
22

3-
permissions:
4-
contents: read
5-
63
on: [pull_request, push]
74

85
jobs:
@@ -11,9 +8,7 @@ jobs:
118
runs-on: ubuntu-latest
129

1310
steps:
14-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
15-
with:
16-
persist-credentials: false
11+
- uses: actions/checkout@v7
1712

1813
- name: Validate script permissions
1914
run: '! stat -c "%a %n" generator-input/tweaks/*/p*.sh | grep -v 755'

.github/workflows/diff-pr.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ jobs:
1414
pull-requests: write
1515

1616
steps:
17-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
17+
- uses: actions/checkout@v7
1818
with:
1919
submodules: true
2020
fetch-depth: 100
21-
persist-credentials: false
2221

2322
# The GitHub checkout action leaves the repo in a slightly awkward
2423
# state. This tidies it up.
@@ -29,7 +28,7 @@ jobs:
2928
git checkout pr-head
3029
3130
- name: Setup .NET
32-
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5
31+
uses: actions/setup-dotnet@v5
3332
with:
3433
dotnet-version: |
3534
6.0.x

.github/workflows/spanner-emulator-pr-push.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Spanner tests against emulator (Spanner changes only)
22

3-
permissions:
4-
contents: read
5-
63
on:
74
pull_request:
85
paths:
@@ -26,13 +23,12 @@ jobs:
2623
- 9020:9020
2724

2825
steps:
29-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
26+
- uses: actions/checkout@v7
3027
with:
3128
submodules: true
32-
persist-credentials: false
3329

3430
- name: Setup .NET
35-
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5
31+
uses: actions/setup-dotnet@v5
3632
with:
3733
dotnet-version: |
3834
6.0.x

.github/workflows/storage-retry-conformance.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Run Storage Retry conformance tests against service emulator
22

3-
permissions:
4-
contents: read
5-
63
on:
74
push:
85
branches: [ main ]
@@ -22,18 +19,17 @@ jobs:
2219

2320
services:
2421
emulator:
25-
image: gcr.io/cloud-devrel-public-resources/storage-testbench:latest # zizmor: ignore[unpinned-images]
22+
image: gcr.io/cloud-devrel-public-resources/storage-testbench:latest
2623
ports:
2724
- 9000:9000
2825

2926
steps:
30-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
27+
- uses: actions/checkout@v7
3128
with:
3229
submodules: true
33-
persist-credentials: false
3430

3531
- name: Setup .NET
36-
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5
32+
uses: actions/setup-dotnet@v5
3733
with:
3834
dotnet-version: |
3935
6.0.x

0 commit comments

Comments
 (0)