Skip to content

Commit

Permalink
Added perms to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed May 21, 2024
1 parent aeb1126 commit 9f76c3d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ on:
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
# schedule:
# - cron: '0 23 * * 0'

permissions:
contents: read
jobs:
analyze:
name: Analyze
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
branches:
- "*"

permissions:
contents: read

jobs:
yamllint:
name: Run yaml linter
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ name: stale-check
on:
schedule:
- cron: '32 8 * * *'

permissions:
contents: read
issues: write
pull-requests: write
jobs:
stale:

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
run-lint:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- master
paths:
- .github/labels.yml
permissions:
contents: read
issues: write
jobs:
sync-labels:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9f76c3d

Please sign in to comment.