Skip to content

Commit 1953194

Browse files
committed
gha: apply zizmor fixes
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent ac0419e commit 1953194

5 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
-
3737
name: Checkout
3838
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
39+
with:
40+
persist-credentials: false
3941
-
4042
name: Create matrix
4143
id: platforms
@@ -78,14 +80,15 @@ jobs:
7880
working-directory: ./build
7981
run: |
8082
mkdir /tmp/out
81-
platform=${{ matrix.platform }}
82-
platformPair=${platform//\//-}
83+
platformPair=${PLATFORM//\//-}
8384
tar -cvzf "/tmp/out/docker-${platformPair}.tar.gz" .
8485
if [ -z "${{ matrix.use_glibc }}" ]; then
8586
echo "ARTIFACT_NAME=${{ matrix.target }}-${platformPair}" >> $GITHUB_ENV
8687
else
8788
echo "ARTIFACT_NAME=${{ matrix.target }}-${platformPair}-glibc" >> $GITHUB_ENV
8889
fi
90+
env:
91+
PLATFORM: ${{ matrix.platform }}
8992
-
9093
name: Upload artifacts
9194
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -144,6 +147,8 @@ jobs:
144147
-
145148
name: Checkout
146149
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
150+
with:
151+
persist-credentials: false
147152
-
148153
name: Create matrix
149154
id: platforms

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5050
with:
5151
fetch-depth: 2
52+
persist-credentials: false
5253
# CodeQL 2.16.4's auto-build added support for multi-module repositories,
5354
# and is trying to be smart by searching for modules in every directory,
5455
# including vendor directories. If no module is found, it's creating one

.github/workflows/e2e.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
-
4646
name: Checkout
4747
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
48+
with:
49+
persist-credentials: false
4850
-
4951
name: Update daemon.json
5052
run: |

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6464
with:
6565
path: ${{ env.GOPATH }}/src/github.com/docker/cli
66+
persist-credentials: false
6667
-
6768
name: Set up Go
6869
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0

.github/workflows/validate.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
-
5050
name: Checkout
5151
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
52+
with:
53+
persist-credentials: false
5254
-
5355
name: Generate
5456
shell: 'script --return --quiet --command "bash {0}"'
@@ -75,6 +77,8 @@ jobs:
7577
-
7678
name: Checkout
7779
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
80+
with:
81+
persist-credentials: false
7882
-
7983
name: Run
8084
shell: 'script --return --quiet --command "bash {0}"'
@@ -92,6 +96,7 @@ jobs:
9296
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9397
with:
9498
path: src/github.com/docker/cli
99+
persist-credentials: false
95100
-
96101
name: Set up Go
97102
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0

0 commit comments

Comments
 (0)