Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set more specific GitHub token permissions on workflows. #854

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: "Ensure labels"

permissions:
pull-requests: read

on: # yamllint disable-line rule:truthy
pull_request:
types:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: "CodeQL"

permissions:
contents: read
checks: write

on:
push:
branches: [ master ]
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
name: "Pull Request Labeler"

permissions:
contents: read
pull-requests: write

on:
- pull_request

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build

permissions:
contents: write
pull-requests: write

on:
pull_request:
release:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Configuration for https://github.com/actions/stale

name: "Stale issues and pull requests"

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

on:
schedule:
- cron: "0 5 * * *"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: test

permissions:
contents: read

on:
push:
branches:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test_integration.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Run Integration Tests

permissions:
contents: read

on: # yamllint disable-line rule:truthy
pull_request:
types:
Expand Down
Loading