Skip to content

Commit 5fa0711

Browse files
Fix sync-zizmor-versions (#69)
Co-authored-by: woodruffw <3059210+woodruffw@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent c823f2c commit 5fa0711

3 files changed

Lines changed: 20 additions & 5 deletions

File tree

.github/workflows/selftest.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches:
66
- main
77
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
- ready_for_review
813
workflow_dispatch:
914

1015
permissions: {}
@@ -168,6 +173,7 @@ jobs:
168173
needs:
169174
- selftest
170175
- selftest-version
176+
- selftest-version-nonexistent-xfail
171177
- selftest-plain
172178
- selftest-plain-gha-hazmat-xfail
173179
- selftest-plain-gha-hazmat-offline-audits-xfail

.github/workflows/sync-zizmor-versions.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
on:
22
schedule:
3-
# every hour
4-
- cron: "0 * * * *"
3+
- cron: "0 * * * *" # every hour
54
workflow_dispatch:
65

76
name: Sync zizmor versions
@@ -22,10 +21,10 @@ jobs:
2221
persist-credentials: false
2322

2423
- name: Install dependencies
25-
run: apt install -y skopeo jq
24+
run: sudo apt install -y skopeo jq
2625

2726
- name: Sync zizmor versions
28-
run: ./support/sync-zizmor-versions.sh > ./support/zizmor-versions
27+
run: ./support/sync-zizmor-versions.sh > ./support/versions
2928

3029
- name: Create or update pull request
3130
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
@@ -34,6 +33,15 @@ jobs:
3433
delete-branch: true
3534
commit-message: Sync zizmor versions
3635
title: Sync zizmor versions
37-
body: This PR was created automatically to sync the zizmor versions used in workflows and other places.
36+
body: |
37+
:robot: :warning: :robot:
38+
39+
Changes were detected to the `ghcr.io/zizmorcore/zizmor` image's tags.
40+
41+
This PR updates the `versions` file with any tag and digest changes.
42+
43+
Please review manually before merging.
44+
45+
Cross-reference: <https://ghcr.io/zizmorcore/zizmor>
3846
assignees: woodruffw
3947
draft: true

support/versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
latest sha256:4a574a15fc2bfb6c3b30db75410f1faeb7a94b5355d46dcbd32309047dd6d097
2+
1.7.0 sha256:05a722e7c356725b7d7ea9c563871fe0afe511e5d7c114e14f4b07a196e5b022
23
1.6.0 sha256:c92dceb026c6858fd51814baf6b9bdc4328c0a36abf42dfa1bdc59f69a1deb77
34
1.8.0 sha256:4d3128ae1370da9507bdd42a62d72b8304d4d0f290147aaac3eb0ebf51d70890
45
1.9.0 sha256:ecb5e81e47bdb9e61ffa26b3def736ef4a6842d25e106986fd9dc579da0c9a68

0 commit comments

Comments
 (0)