Skip to content

Commit

Permalink
Give explicit permissions to Github actions (#286)
Browse files Browse the repository at this point in the history
because actions in this repo no longer have write permission by default.
  • Loading branch information
graebm authored Jun 2, 2022
1 parent 4d4c28f commit 6c111aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/closed-issue-message.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
jobs:
auto_comment:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: aws-actions/closed-issue-message@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
jobs:
update-docs-branch:
runs-on: ubuntu-20.04 # latest
permissions:
contents: write # allow push
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/stale_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
cleanup:
runs-on: ubuntu-latest
name: Stale issue job
permissions:
issues: write
pull-requests: write
steps:
- uses: aws-actions/stale-issue-cleanup@v3
with:
Expand Down

0 comments on commit 6c111aa

Please # to comment.