Skip to content

Commit a196295

Browse files
committed
fix zizmor findings
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent 9242fb9 commit a196295

16 files changed

+120
-65
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ updates:
55
directory: "/"
66
schedule:
77
interval: "daily"
8+
cooldown:
9+
default-days: 2
810
labels:
911
- "dependencies"
1012
- "bot"
@@ -13,6 +15,8 @@ updates:
1315
directory: "/"
1416
schedule:
1517
interval: "daily"
18+
cooldown:
19+
default-days: 2
1620
versioning-strategy: "increase"
1721
allow:
1822
- dependency-type: "production"

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ concurrency:
44
group: ${{ github.workflow }}-${{ github.ref }}
55
cancel-in-progress: true
66

7+
permissions:
8+
contents: read
9+
710
on:
811
push:
912
branches:
@@ -24,7 +27,7 @@ jobs:
2427
steps:
2528
-
2629
name: Build
27-
uses: docker/bake-action@v7
30+
uses: docker/bake-action@82490499d2e5613fcead7e128237ef0b0ea210f7 # v7.0.0
2831
with:
2932
targets: build
3033
env:

.github/workflows/buildx-lab-releases-json.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ concurrency:
44
group: ${{ github.workflow }}-${{ github.ref }}
55
cancel-in-progress: true
66

7+
permissions:
8+
contents: read
9+
710
on:
811
workflow_dispatch:
912
schedule:
@@ -22,20 +25,22 @@ jobs:
2225
repository: docker/buildx-desktop
2326
artifact_name: buildx-lab-releases-json
2427
filename: buildx-lab-releases.json
25-
secrets: inherit
2628

2729
open-pr:
2830
runs-on: ubuntu-24.04
2931
if: github.event_name != 'pull_request'
32+
permissions:
33+
contents: write
34+
pull-requests: write
3035
needs:
3136
- generate
3237
steps:
3338
-
3439
name: Checkout
35-
uses: actions/checkout@v6
40+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3641
-
3742
name: Download
38-
uses: actions/download-artifact@v8
43+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
3944
with:
4045
name: buildx-lab-releases-json
4146
path: .github

.github/workflows/buildx-releases-json.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ concurrency:
44
group: ${{ github.workflow }}-${{ github.ref }}
55
cancel-in-progress: true
66

7+
permissions:
8+
contents: read
9+
710
on:
811
workflow_dispatch:
912
schedule:
@@ -22,20 +25,22 @@ jobs:
2225
repository: docker/buildx
2326
artifact_name: buildx-releases-json
2427
filename: buildx-releases.json
25-
secrets: inherit
2628

2729
open-pr:
2830
runs-on: ubuntu-24.04
2931
if: github.event_name != 'pull_request'
32+
permissions:
33+
contents: write
34+
pull-requests: write
3035
needs:
3136
- generate
3237
steps:
3338
-
3439
name: Checkout
35-
uses: actions/checkout@v6
40+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3641
-
3742
name: Download
38-
uses: actions/download-artifact@v8
43+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
3944
with:
4045
name: buildx-releases-json
4146
path: .github

.github/workflows/codeql.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,40 +7,41 @@ on:
77
pull_request:
88

99
permissions:
10-
actions: read
1110
contents: read
12-
security-events: write
1311

1412
env:
1513
NODE_VERSION: "24"
1614

1715
jobs:
1816
analyze:
1917
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
security-events: write
2021
steps:
2122
-
2223
name: Checkout
23-
uses: actions/checkout@v6
24+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2425
-
2526
name: Enable corepack
2627
run: |
2728
corepack enable
2829
yarn --version
2930
-
3031
name: Set up Node
31-
uses: actions/setup-node@v6
32+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
3233
with:
3334
node-version: ${{ env.NODE_VERSION }}
3435
-
3536
name: Initialize CodeQL
36-
uses: github/codeql-action/init@v4
37+
uses: github/codeql-action/init@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1
3738
with:
3839
languages: javascript-typescript
3940
-
4041
name: Autobuild
41-
uses: github/codeql-action/autobuild@v4
42+
uses: github/codeql-action/autobuild@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1
4243
-
4344
name: Perform CodeQL Analysis
44-
uses: github/codeql-action/analyze@v4
45+
uses: github/codeql-action/analyze@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1
4546
with:
4647
category: "/language:javascript-typescript"

.github/workflows/compose-lab-releases-json.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ concurrency:
44
group: ${{ github.workflow }}-${{ github.ref }}
55
cancel-in-progress: true
66

7+
permissions:
8+
contents: read
9+
710
on:
811
workflow_dispatch:
912
schedule:
@@ -22,20 +25,22 @@ jobs:
2225
repository: docker/compose-desktop
2326
artifact_name: compose-lab-releases-json
2427
filename: compose-lab-releases.json
25-
secrets: inherit
2628

2729
open-pr:
2830
runs-on: ubuntu-24.04
2931
if: github.event_name != 'pull_request'
32+
permissions:
33+
contents: write
34+
pull-requests: write
3035
needs:
3136
- generate
3237
steps:
3338
-
3439
name: Checkout
35-
uses: actions/checkout@v6
40+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3641
-
3742
name: Download
38-
uses: actions/download-artifact@v8
43+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
3944
with:
4045
name: compose-lab-releases-json
4146
path: .github

.github/workflows/compose-releases-json.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ concurrency:
44
group: ${{ github.workflow }}-${{ github.ref }}
55
cancel-in-progress: true
66

7+
permissions:
8+
contents: read
9+
710
on:
811
workflow_dispatch:
912
schedule:
@@ -22,20 +25,22 @@ jobs:
2225
repository: docker/compose
2326
artifact_name: compose-releases-json
2427
filename: compose-releases.json
25-
secrets: inherit
2628

2729
open-pr:
2830
runs-on: ubuntu-24.04
2931
if: github.event_name != 'pull_request'
32+
permissions:
33+
contents: write
34+
pull-requests: write
3035
needs:
3136
- generate
3237
steps:
3338
-
3439
name: Checkout
35-
uses: actions/checkout@v6
40+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3641
-
3742
name: Download
38-
uses: actions/download-artifact@v8
43+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
3944
with:
4045
name: compose-releases-json
4146
path: .github

.github/workflows/cosign-releases-json.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ concurrency:
44
group: ${{ github.workflow }}-${{ github.ref }}
55
cancel-in-progress: true
66

7+
permissions:
8+
contents: read
9+
710
on:
811
workflow_dispatch:
912
schedule:
@@ -22,20 +25,22 @@ jobs:
2225
repository: sigstore/cosign
2326
artifact_name: cosign-releases-json
2427
filename: cosign-releases.json
25-
secrets: inherit
2628

2729
open-pr:
2830
runs-on: ubuntu-24.04
2931
if: github.event_name != 'pull_request'
32+
permissions:
33+
contents: write
34+
pull-requests: write
3035
needs:
3136
- generate
3237
steps:
3338
-
3439
name: Checkout
35-
uses: actions/checkout@v6
40+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3641
-
3742
name: Download
38-
uses: actions/download-artifact@v8
43+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
3944
with:
4045
name: cosign-releases-json
4146
path: .github

.github/workflows/docker-releases-json.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ concurrency:
44
group: ${{ github.workflow }}-${{ github.ref }}
55
cancel-in-progress: true
66

7+
permissions:
8+
contents: read
9+
710
on:
811
workflow_dispatch:
912
schedule:
@@ -25,20 +28,22 @@ jobs:
2528
tag_patterns: |
2629
^docker-(.*)$
2730
^(v.*)$
28-
secrets: inherit
2931
3032
open-pr:
3133
runs-on: ubuntu-24.04
3234
if: github.event_name != 'pull_request'
35+
permissions:
36+
contents: write
37+
pull-requests: write
3338
needs:
3439
- generate
3540
steps:
3641
-
3742
name: Checkout
38-
uses: actions/checkout@v6
43+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3944
-
4045
name: Download
41-
uses: actions/download-artifact@v8
46+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
4247
with:
4348
name: docker-releases-json
4449
path: .github

.github/workflows/pr-assign-author.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ permissions:
44
contents: read
55

66
on:
7-
pull_request_target:
7+
pull_request_target: # zizmor: ignore[dangerous-triggers] does not checkout, safe to use pull_request_target
88
types:
99
- opened
1010
- reopened

0 commit comments

Comments
 (0)