Skip to content

Commit

Permalink
Token permissions (#1580)
Browse files Browse the repository at this point in the history
* Run continuous_integration.yml with read-only permissions

Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>

* Future-proof other workflow tokens

Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>

---------

Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
  • Loading branch information
pnacht authored Jan 17, 2025
1 parent 616bc30 commit 504b5a6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/auto-assignment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ on:

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

jobs:
welcome:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/github-script@v6
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [master]
pull_request:

permissions:
contents: read

jobs:
black:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/stale-issues-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
schedule:
- cron: "30 1 * * *"

permissions:
contents: read

jobs:
close-issues:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 504b5a6

Please sign in to comment.