Skip to content

Commit

Permalink
GitHub Workflows security hardening (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashashura committed Dec 12, 2022
1 parent 801ad37 commit c43512a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
- 'alpha'
- '!all-contributors/**'
pull_request: {}
permissions:
actions: write # to cancel/stop running workflows (styfle/cancel-workflow-action)
contents: read # to fetch code (actions/checkout)

jobs:
main:
continue-on-error: ${{ matrix.react != 'latest' }}
Expand Down Expand Up @@ -58,6 +62,10 @@ jobs:
flags: ${{ matrix.react }}

release:
permissions:
actions: write # to cancel/stop running workflows (styfle/cancel-workflow-action)
contents: write # to create release tags (cycjimmy/semantic-release-action)

needs: main
runs-on: ubuntu-latest
if:
Expand Down

0 comments on commit c43512a

Please sign in to comment.