Skip to content

Commit

Permalink
Add permissions to example yml files
Browse files Browse the repository at this point in the history
This action requires the checks: write permission so I've added an example in the readme to save people from digging around to find the right permission
  • Loading branch information
Jay Turner authored and GitHub committed Sep 21, 2023
1 parent e9fa2f5 commit ea0fb91
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ If that's fine for you, using this action is as simple as:
on:
pull_request:
push:
permissions:
contents: read
actions: read
checks: write
jobs:
build-test:
name: Build & Test
Expand Down Expand Up @@ -86,6 +90,10 @@ on:
workflows: ['CI'] # runs after CI workflow
types:
- completed
permissions:
contents: read
actions: read
checks: write
jobs:
report:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ea0fb91

Please sign in to comment.