File tree Expand file tree Collapse file tree 4 files changed +24
-17
lines changed Expand file tree Collapse file tree 4 files changed +24
-17
lines changed Original file line number Diff line number Diff line change 55 directory : " /"
66 schedule :
77 interval : " daily"
8+ cooldown :
9+ default-days : 7
810 groups :
911 actions-updates :
1012 dependency-type : " production"
@@ -17,6 +19,8 @@ updates:
1719 directory : " /"
1820 schedule :
1921 interval : " daily"
22+ cooldown :
23+ default-days : 7
2024 groups :
2125 cargo-updates :
2226 dependency-type : " production"
Original file line number Diff line number Diff line change 77 branches : ["**"]
88
99permissions :
10- contents : read
10+ contents : read # Default token to read
1111
1212jobs :
1313 zizmor :
1414 name : zizmor latest via PyPI
1515 runs-on : ubuntu-latest
1616 permissions :
17- security-events : write
18- contents : read
19- actions : read
17+ security-events : write # Needed to write security events to github
18+ contents : read # Needed to read clone repo
19+ actions : read # Needed to read actions
2020 steps :
2121 - name : Harden the runner (Audit all outbound calls)
2222 uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
2323 with :
2424 egress-policy : audit
2525
2626 - name : Checkout repository
27- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
27+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2828 with :
2929 persist-credentials : false
3030
3131 - name : Install the latest version of uv
32- uses : astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 # v4
32+ uses : astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
3333
3434 - name : Run zizmor
3535 run : uvx zizmor --pedantic --format sarif . > results.sarif
3636 env :
3737 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3838
3939 - name : Upload SARIF file
40- uses : github/codeql-action/upload-sarif@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3
40+ uses : github/codeql-action/upload-sarif@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
4141 with :
4242 sarif_file : results.sarif
4343 category : zizmor
Original file line number Diff line number Diff line change 99 - .github/workflows/ci-chart.yaml
1010
1111permissions :
12- contents : read
12+ contents : read # Default token to read
1313
1414jobs :
1515 lint-test :
16+ name : Lint and Test Charts
1617 runs-on : ubuntu-latest
1718 steps :
1819 - name : Harden the runner (Audit all outbound calls)
1920 uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
2021 with :
2122 egress-policy : audit
2223
23- - name : Checkout
24- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
24+ - name : Checkout repository
25+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2526 with :
2627 fetch-depth : 0
2728 persist-credentials : false
3132 with :
3233 version : v3.14.4
3334
34- - uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v5
35+ - name : Set up python
36+ uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
3537 with :
3638 python-version : ' 3.x'
3739 check-latest : true
Original file line number Diff line number Diff line change 88 - published
99
1010permissions :
11- contents : read
11+ contents : read # Default token to read
1212
1313jobs :
1414 build-push-image :
2020 component :
2121 - webhook
2222 permissions :
23- contents : read
24- packages : write
23+ contents : read # Needed to check out code
24+ packages : write # Needed to write image to ghcr
2525 id-token : write # Needed for cosign to use github OIDC token
2626 steps :
2727 - name : ' Harden runner'
@@ -101,8 +101,8 @@ jobs:
101101 name : Publish Helm chart for protect-webhook
102102 runs-on : ubuntu-latest
103103 permissions :
104- contents : read
105- packages : write
104+ contents : read # Needed to check out code
105+ packages : write # Needed to write helm chart to ghcr
106106 steps :
107107 - name : ' Harden runner'
108108 uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
@@ -133,10 +133,11 @@ jobs:
133133
134134 - name : Publish new helm chart for protect-webhook
135135 run : |
136- echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io --username ${GITHUB_ACTOR} --password-stdin
136+ echo "${GH_TOKEN}" | helm registry login ghcr.io --username ${GITHUB_ACTOR} --password-stdin
137137 helm package charts/protect-webhook/ --version="${PROTECT_WEBHOOK_CHART_VERSION_TAG}"
138138 helm push protect-webhook-"${PROTECT_WEBHOOK_CHART_VERSION_TAG}".tgz oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts
139139 env :
140+ GH_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
140141 GITHUB_ACTOR : ' ${{ github.actor }}'
141142 GITHUB_REPOSITORY_OWNER : ' ${{ steps.resolve_parameters.outputs.repository_owner }}'
142143 PROTECT_WEBHOOK_CHART_VERSION_TAG : ' ${{ steps.resolve_parameters.outputs.protect_webhook_chart_version_tag }}'
You can’t perform that action at this time.
0 commit comments