-
Notifications
You must be signed in to change notification settings - Fork 1
CI: Migrate release-drafter to v7 split #57
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
Merged
tykeal
merged 1 commit into
lfreleng-actions:main
from
modeseven-lfreleng-actions:fix/release-drafter-v7-split
Mar 19, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,59 @@ | ||
| --- | ||
| # SPDX-FileCopyrightText: 2025 The Linux Foundation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| name: 'Autolabeler' | ||
|
|
||
| # yamllint disable-line rule:truthy | ||
| on: | ||
| # pull_request is required for autolabeler | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - synchronize | ||
| - reopened | ||
| # pull_request_target is required for autolabeler on PRs from forks | ||
| pull_request_target: | ||
| types: | ||
| - opened | ||
| - synchronize | ||
| - reopened | ||
|
|
||
| permissions: {} | ||
|
|
||
| concurrency: | ||
| # yamllint disable-line rule:line-length | ||
| group: ${{ format('al-{0}-pr-{1}', github.event_name, github.event.pull_request.number) }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| autolabel: | ||
| name: 'Autolabel PR' | ||
| # Run on pull_request_target for forks, or pull_request for same-repo PRs | ||
| # This prevents duplicate runs for same-repo PRs | ||
| # yamllint disable rule:line-length | ||
| if: > | ||
| (github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.fork) || | ||
| (github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork) | ||
| # yamllint enable rule:line-length | ||
| # SECURITY: pull_request_target with write permissions is safe here because: | ||
| # 1. This workflow does NOT checkout any code from the PR | ||
| # 2. The workflow code itself runs from the base branch (not the fork) | ||
| # 3. release-drafter only makes GitHub API calls (no code execution) | ||
| # 4. pull_request_target is needed ONLY for autolabeling fork PRs | ||
| permissions: | ||
| # write permission is required for autolabeler | ||
| pull-requests: write | ||
| # read is sufficient; autolabeler does not create releases | ||
| contents: read | ||
| runs-on: 'ubuntu-latest' | ||
| timeout-minutes: 3 | ||
| steps: | ||
| # Harden the runner used by this workflow | ||
| # yamllint disable-line rule:line-length | ||
| - uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | ||
| with: | ||
| egress-policy: 'audit' | ||
|
|
||
| # yamllint disable-line rule:line-length | ||
| - uses: release-drafter/release-drafter/autolabeler@44a942e465867c7465b76aa808ddca6e0acae5da # v7.1.0 |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.