Skip to content

Commit

Permalink
Add workflow permissions (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti authored Mar 5, 2024
1 parent 2062999 commit ec49a8f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
type: boolean
required: false

permissions:
contents: write
packages: write

jobs:
build-test-publish:
name: "Build, test, publish"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci_common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ on:
description: ""
required: true

permissions:
contents: write
packages: write

jobs:
build: # run build using the github action!
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
branches: [main]
workflow_dispatch:

permissions:
contents: write
packages: write

jobs:
build-test-publish:
name: "Build, test, publish"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ on:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#issue_comment


permissions:
contents: write
packages: write

jobs:
pr_comment:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr_auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- README.md
- 'docs/**'

permissions:
contents: write
packages: write

jobs:
build-test:
name: "Build, test, publish"
Expand Down

0 comments on commit ec49a8f

Please sign in to comment.