Skip to content

Commit

Permalink
ci: give write permission to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bittermandel authored Mar 14, 2024
1 parent 792b1ac commit ef02941
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ jobs:
build:
needs: base
if: ${{ needs.base.outputs.go_updated == 'true' }}

runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write
outputs:
tag_commit: ${{ steps.update_image.outputs.commit }}

Expand Down Expand Up @@ -124,7 +125,9 @@ jobs:
needs.base.result == 'success' && (needs.build.result == 'success' || needs.base.outputs.yaml_updated == 'true')
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write
steps:
- name: Retrieve commit ref
id: commit_ref
Expand Down

0 comments on commit ef02941

Please sign in to comment.