-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Change check-labels to be a separate workflow
Due to github permissions, we don't have access to the BOT_WORKFLOW_TOKEN in pull_request events from forks. The recommended way by github docs is to use a pull_request_target event that runs in the context of the base branch. The recommendation is to not run any build or execute code in events like this coming from forks due to increased security risk.
- Loading branch information
1 parent
29b0e86
commit 7978f66
Showing
2 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Check required labels | ||
|
||
on: | ||
pull_request_target: | ||
branches: ["**"] | ||
|
||
jobs: | ||
check-labels: | ||
name: Check PR labels | ||
uses: eclipse-zenoh/ci/.github/workflows/check-labels.yml@main | ||
secrets: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
permissions: | ||
pull-requests: write |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters