Skip to content

Commit 9c87ae0

Browse files
authored
Merge pull request #82 from crazy-max/zizmor
zizmor workflow
2 parents 62fe53e + 4771b4e commit 9c87ae0

6 files changed

Lines changed: 49 additions & 28 deletions

File tree

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "daily"
7+
cooldown:
8+
default-days: 2
79
labels:
810
- "kind/dependencies"
911
- "bot"

.github/workflows/build.yml

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

7-
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
87
permissions:
98
contents: read
109

@@ -28,15 +27,13 @@ jobs:
2827
build:
2928
runs-on: ubuntu-latest
3029
permissions:
31-
# same as global permissions
32-
contents: read
33-
# required to push to GHCR
34-
packages: write
30+
contents: read # same as global permissions
31+
packages: write # required to push to GHCR
3532
steps:
3633
-
3734
name: Docker meta
3835
id: meta
39-
uses: docker/metadata-action@v5
36+
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
4037
with:
4138
images: |
4239
${{ env.DOCKERHUB_SLUG }}
@@ -51,28 +48,28 @@ jobs:
5148
org.opencontainers.image.vendor=CrazyMax
5249
-
5350
name: Set up QEMU
54-
uses: docker/setup-qemu-action@v3
51+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
5552
-
5653
name: Set up Docker Buildx
57-
uses: docker/setup-buildx-action@v3
54+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
5855
-
5956
name: Login to DockerHub
6057
if: github.event_name != 'pull_request'
61-
uses: docker/login-action@v3
58+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
6259
with:
6360
username: ${{ secrets.DOCKER_USERNAME }}
6461
password: ${{ secrets.DOCKER_PASSWORD }}
6562
-
6663
name: Login to GHCR
6764
if: github.event_name != 'pull_request'
68-
uses: docker/login-action@v3
65+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
6966
with:
7067
registry: ghcr.io
7168
username: ${{ github.repository_owner }}
7269
password: ${{ secrets.GITHUB_TOKEN }}
7370
-
7471
name: Build
75-
uses: docker/bake-action@v6
72+
uses: docker/bake-action@82490499d2e5613fcead7e128237ef0b0ea210f7 # v7.0.0
7673
with:
7774
files: |
7875
./docker-bake.hcl

.github/workflows/labels.yml

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

7-
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
87
permissions:
98
contents: read
109

@@ -24,16 +23,14 @@ jobs:
2423
labeler:
2524
runs-on: ubuntu-latest
2625
permissions:
27-
# same as global permissions
28-
contents: read
29-
# required to update labels
30-
issues: write
26+
contents: read # same as global permissions
27+
issues: write # required to update labels
3128
steps:
3229
-
3330
name: Checkout
34-
uses: actions/checkout@v6
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3532
-
3633
name: Run Labeler
37-
uses: crazy-max/ghaction-github-labeler@v5
34+
uses: crazy-max/ghaction-github-labeler@24d110aa46a59976b8a7f35518cb7f14f434c916 # v5.3.0
3835
with:
3936
dry-run: ${{ github.event_name == 'pull_request' }}

.github/workflows/test.yml

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

7-
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
87
permissions:
98
contents: read
109

1110
on:
1211
push:
1312
branches:
1413
- 'master'
15-
paths-ignore:
16-
- '**.md'
1714
pull_request:
18-
paths-ignore:
19-
- '**.md'
2015

2116
env:
2217
BUILD_TAG: unbound:test
@@ -34,16 +29,16 @@ jobs:
3429
steps:
3530
-
3631
name: Checkout
37-
uses: actions/checkout@v6
32+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3833
-
3934
name: Set up QEMU
40-
uses: docker/setup-qemu-action@v3
35+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
4136
-
4237
name: Set up Docker Buildx
43-
uses: docker/setup-buildx-action@v3
38+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
4439
-
4540
name: Build
46-
uses: docker/bake-action@v6
41+
uses: docker/bake-action@82490499d2e5613fcead7e128237ef0b0ea210f7 # v7.0.0
4742
with:
4843
source: .
4944
targets: image-local
@@ -59,7 +54,7 @@ jobs:
5954
UNBOUND_CONTAINER: ${{ env.CONTAINER_NAME }}
6055
-
6156
name: Check container logs
62-
uses: crazy-max/.github/.github/actions/container-logs-check@main
57+
uses: crazy-max/.github/.github/actions/container-logs-check@bbd31df64ee0f097a02f12495f541f9236f18c46 # v1.2.0
6358
with:
6459
container_name: ${{ env.CONTAINER_NAME }}
6560
log_check: "info: start of service"

.github/workflows/zizmor.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: zizmor
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
permissions:
8+
contents: read
9+
10+
on:
11+
workflow_dispatch:
12+
push:
13+
branches:
14+
- 'master'
15+
pull_request:
16+
17+
jobs:
18+
run:
19+
uses: crazy-max/.github/.github/workflows/zizmor.yml@bbd31df64ee0f097a02f12495f541f9236f18c46 # v1.2.0
20+
permissions:
21+
contents: read
22+
security-events: write
23+
with:
24+
min-severity: medium
25+
min-confidence: medium
26+
persona: pedantic

.github/zizmor.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# https://docs.zizmor.sh/configuration/
2+
rules:
3+
secrets-outside-env:
4+
disable: true

0 commit comments

Comments
 (0)