Skip to content

Commit

Permalink
Fix issue notification workflow permissions (#3952)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored Nov 13, 2024
1 parent 88b28f6 commit 8c2d9e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/codeql-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
uses: github/codeql-action/analyze@v3

scheduled-job-notification:
permissions:
issues: write
needs:
- analyze
if: always()
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/owasp-dependency-check-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
path: agent/agent/build/reports

scheduled-job-notification:
permissions: write-all
permissions:
issues: write
needs:
- analyze
if: always()
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/reusable-scheduled-job-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:

jobs:
notify-if-needed:
permissions:
issues: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 8c2d9e6

Please sign in to comment.