Skip to content

Commit

Permalink
[fix]: fix CI permissions according to failed CI jobs (#1871)
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Yuan <[email protected]>
  • Loading branch information
SamYuan1990 authored Dec 2, 2024
1 parent a447077 commit a5c3442
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on: # yamllint disable-line rule:truthy

permissions:
security-events: write
contents: read

jobs:
tests:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pre-commit-auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on: # yamllint disable-line rule:truthy
schedule:
- cron: 0 0 1 * *

permissions: read-all
permissions:
contents: write
pull-requests: write

jobs:
auto-update:
Expand Down

0 comments on commit a5c3442

Please sign in to comment.