Skip to content

Commit

Permalink
[CP-Sec] Set permissions to the workflows tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
carlewis committed Jun 12, 2024
1 parent ae28090 commit 7e957c2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
schedule:
- cron: '23 5 * * 5'

permissions: {}

jobs:
analyze:
name: Analyze (${{ matrix.language }})
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "Pull Request Labeler"
on:
- pull_request_target

permissions: {}

jobs:
triage:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/new-issues-to-triage-projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

permissions:
issues: read

jobs:
assign_one_project:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
schedule:
- cron: "0 * * * *"

permissions: {}

jobs:
mark-inactive-30d:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 7e957c2

Please sign in to comment.