Enhance checkout steps in workflows#2128
Merged
Merged
Conversation
Signed-off-by: Riaan Kleinhans <riaankleinhans@gmail.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR hardens and refines GitHub Actions workflows used for labeling by pinning the labeler action to a specific commit SHA and adjusting checkout behavior to use the correct repository context depending on whether the event is a PR or an issue.
Changes:
- Pin
cncf/automation/.github/actions/labeler-actionto a fixed commit SHA inlabeler.yamlandslash-commands.yaml. - Split checkout logic in
labeler.yamlto use PR head context for PR events and default repo context for issue events.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/slash-commands.yaml | Pins the labeler action to a specific commit SHA for deterministic execution. |
| .github/workflows/labeler.yaml | Pins the labeler action and changes checkout behavior based on PR vs. issue events. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
stackedsax
pushed a commit
to stackedsax/toc
that referenced
this pull request
May 24, 2026
Signed-off-by: Riaan Kleinhans <riaankleinhans@gmail.com> Signed-off-by: stackedsax <alex.scammon@gresearch.co.uk>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
labeler.yamlandslash-commands.yamlto use a specific commit SHA instead of the main branch.labeler.yamlto differentiate between pull request and issue events, ensuring the correct repository context is used.