Skip to content

Commit

Permalink
Set more specific GitHub token permissions on workflows. (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-edmonds-dd committed Sep 12, 2024
1 parent 7b721e3 commit f3a8cc1
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 0 deletions.
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

0 comments on commit f3a8cc1

Please sign in to comment.