Skip to content

Commit 47cf62a

Browse files
committed
chore: add proper permission to github release workflow
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent e2f8e6f commit 47cf62a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/publish-docker-image.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737
with:
3838
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3939
tags: |
40-
type=sha,event=workflow_dispatch,enable=${{ !startsWith(github.ref, 'refs/tags/') }}
4140
type=semver,pattern={{version}}
4241
labels: |
4342
org.opencontainers.image.title=VulnerableCode
@@ -60,6 +59,7 @@ jobs:
6059
tags: ${{ steps.meta.outputs.tags }}
6160
labels: ${{ steps.meta.outputs.labels }}
6261
annotations: ${{ steps.meta.outputs.annotations }}
62+
provenance: false
6363

6464
- name: Generate artifact attestation
6565
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2

‎.github/workflows/pypi-release.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050
needs:
5151
- build-pypi-distribs
5252
runs-on: ubuntu-24.04
53+
permissions:
54+
contents: write
5355

5456
steps:
5557
- name: Download built archives

0 commit comments

Comments
 (0)