Skip to content

Commit

Permalink
add permissions for GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shineyruan committed Apr 11, 2024
1 parent 3f29e28 commit e1db70c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
workflow_dispatch:

permissions:
actions: write

jobs:
build:
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build_differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: build-differential
on:
pull_request:

permissions:
actions: write

jobs:
build-differential:
runs-on: ubuntu-latest
Expand Down

0 comments on commit e1db70c

Please sign in to comment.