Skip to content

Commit

Permalink
fix systemd workflow during release
Browse files Browse the repository at this point in the history
job level permissions were overriding global permissions and that was
the reason it was failing.

Signed-off-by: kranurag7 <[email protected]>
  • Loading branch information
kranurag7 committed Apr 30, 2024
1 parent 2e870f4 commit 007b6ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci-systemd-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@ on:
tags:
- "*"

# Declare default permissions as read only.
permissions:
id-token: write # requires for cosign keyless signing
contents: write # requires for goreleaser to write to GitHub release

jobs:
goreleaser:
runs-on: ubuntu-20.04
if: github.repository == 'kubearmor/kubearmor'
permissions:
contents: write
id-token: write # requires for cosign keyless signing
contents: write # requires for goreleaser to write to GitHub release
steps:
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 0 additions & 2 deletions KubeArmor/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ signs:
certificate: '${artifact}.cert'
args:
- sign-blob
- '--oidc-issuer=https://token.actions.githubusercontent.com'
- '--oidc-provider=github-actions'
- '--output-certificate=${certificate}'
- '--output-signature=${signature}'
- '${artifact}'
Expand Down

0 comments on commit 007b6ea

Please sign in to comment.