Skip to content

Commit

Permalink
doc: Add permissions to workflow examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Feb 10, 2023
1 parent 8ceaec8 commit 8fece36
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,21 @@ on:
issues:
types: [ opened ]

permissions:
contents: read

jobs:
label-component:
runs-on: ubuntu-latest

permissions:
# required for all workflows
issues: write

# only required for workflows in private repositories
actions: read
contents: read

steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -181,9 +193,21 @@ on:
issues:
types: [ opened ]

permissions:
contents: read

jobs:
label-component:
runs-on: ubuntu-latest

permissions:
# required for all workflows
issues: write

# only required for workflows in private repositories
actions: read
contents: read

steps:
- uses: actions/checkout@v3

Expand Down

0 comments on commit 8fece36

Please sign in to comment.