Skip to content

Commit c69b9b9

Browse files
authored
Use minimal GITHUB_TOKEN permissions for metrics and subtree workflow (#552)
> Please add a description of your PR. > If this is a solution to an open challenge, please explain your solution. > > Don't forget to check our book to ensure your solution satisfy the overall > requirements as well as the challenge success criteria. > This PR uses minimal GitHub Token permissions for writing to a branch and creating a PR instead of relying on overly permissive defaults. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
1 parent 68525fc commit c69b9b9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/kani-metrics.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ defaults:
1111

1212
jobs:
1313
update-kani-metrics:
14+
permissions:
15+
contents: write
16+
pull-requests: write
1417
if: github.repository == 'model-checking/verify-rust-std'
1518
runs-on: ubuntu-latest
1619

.github/workflows/update-subtree.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ defaults:
1111

1212
jobs:
1313
update-subtree-library:
14+
permissions:
15+
contents: write
16+
pull-requests: write
1417
if: github.repository == 'model-checking/verify-rust-std'
1518
# Changing the host platform may alter the libgit2 version as used by
1619
# splitsh-lite, which will require changing the version of git2go.

0 commit comments

Comments
 (0)