Skip to content

Commit 05c5674

Browse files
cpovirkGoogle Java Core Libraries
authored andcommitted
Set persist-credentials: false on checkout actions.
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
1 parent 3072ff8 commit 05c5674

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
steps:
3535
- name: 'Check out repository'
3636
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
37+
with:
38+
persist-credentials: false
3739
# When we specify multiple JDKs, the final one becomes the default, which is used to execute Maven itself.
3840
# Our Maven configuration then specifies different JDKs to use for some of the steps:
3941
# - 11 (sometimes) to *download* to support anyone who runs JDiff or our Gradle integration tests (including our doc snapshots and our Java 11 CI test run) but not to use directly
@@ -64,6 +66,8 @@ jobs:
6466
steps:
6567
- name: 'Check out repository'
6668
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
69+
with:
70+
persist-credentials: false
6771
- name: 'Set up JDKs'
6872
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
6973
# For the usage of the JDK 11+17, see util/gradle_integration_tests.sh
@@ -89,6 +93,8 @@ jobs:
8993
steps:
9094
- name: 'Check out repository'
9195
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
96+
with:
97+
persist-credentials: false
9298
- name: 'Set up JDKs'
9399
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
94100
with:
@@ -116,6 +122,8 @@ jobs:
116122
steps:
117123
- name: 'Check out repository'
118124
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
125+
with:
126+
persist-credentials: false
119127
- name: 'Set up JDKs'
120128
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
121129
with:

0 commit comments

Comments
 (0)