Skip to content

Commit

Permalink
fix(CI): pass github secret to reusable and and checks:write permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbe-Haegeman committed Dec 20, 2024
1 parent 5650ef0 commit c4313bd
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@
# - msrv: check that the msrv specified in the crate is correct
permissions:
contents: read
checks: write # Note: this wasn't in the original workflow, but seems to be required for the clippy action. This should be investigated

# This all is a workaround for the [lack of YAML anchors in Github Actions](https://github.com/actions/runner/issues/1182).
# Once those are added, this file can be merged with /check_config.yml
@@ -21,6 +22,9 @@ on:
description: "Minimum Supported Rust Version"
required: true
type: string
secrets:
GITHUB_TOKEN:
required: true

# Set the working directory for all steps in this workflow to the callers input
# This however is not possible due to `defaults.run.working-directory` accepting only static values.
1 change: 1 addition & 0 deletions .github/workflows/check_config.yml
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ name: checks execute

permissions:
contents: read
checks: write
# This configuration allows maintainers of this repo to create a branch and pull request based on
# the new branch. Restricting the push trigger to the main branch ensures that the PR only gets
# built once.

0 comments on commit c4313bd

Please sign in to comment.