Skip to content

Commit

Permalink
[fix]: adjust gosec permissions settings according to GHA ref (#1867)
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Yuan <[email protected]>
  • Loading branch information
SamYuan1990 authored Nov 29, 2024
1 parent e45f6c4 commit a447077
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on: # yamllint disable-line rule:truthy
schedule:
- cron: 12 9 * * *

permissions: read-all
permissions:
security-events: write

jobs:
# daily go security
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on: # yamllint disable-line rule:truthy
workflow_call:

permissions:
pull-requests: read
security-events: write
contents: read

jobs:
tests:
Expand Down

0 comments on commit a447077

Please sign in to comment.