Skip to content

Commit

Permalink
fix: code scanning alerts re: workflows permissions
Browse files Browse the repository at this point in the history
- [x] add permissions to stale workflow
- [x] add permissions to tests workflow
  - [x] remove empty brackers on pull_request branch in tests workflow

Signed-off-by: jmeridth <[email protected]>
  • Loading branch information
jmeridth committed Sep 2, 2024
1 parent 8dd3554 commit 76bfcab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
workflow_dispatch:
schedule:
- cron: "0 12 * * *"
permissions:
contents: read
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: GitHub Actions CI
on:
push:
branches: master
pull_request: []
pull_request:
merge_group:
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 76bfcab

Please sign in to comment.