Skip to content

Enhance checkout steps in workflows#2128

Merged
riaankleinhans merged 1 commit into
mainfrom
update-pr-labeller
Apr 21, 2026
Merged

Enhance checkout steps in workflows#2128
riaankleinhans merged 1 commit into
mainfrom
update-pr-labeller

Conversation

@riaankleinhans
Copy link
Copy Markdown
Contributor

  • Modified the labeler action in both labeler.yaml and slash-commands.yaml to use a specific commit SHA instead of the main branch.
  • Enhanced the checkout steps in labeler.yaml to differentiate between pull request and issue events, ensuring the correct repository context is used.

Signed-off-by: Riaan Kleinhans <riaankleinhans@gmail.com>
@riaankleinhans riaankleinhans requested a review from Copilot April 21, 2026 14:50
@riaankleinhans riaankleinhans requested review from a team as code owners April 21, 2026 14:50
@riaankleinhans riaankleinhans merged commit 79963ef into main Apr 21, 2026
3 checks passed
@github-actions github-actions Bot added needs-triage Indicates an issue or PR that has not been triaged yet (has a 'triage/foo' label applied) needs-kind Indicates an issue or PR that is missing an issue type or kind (a kind/foo label) needs-group Indicates an issue or PR that has not been assigned a group (toc or tag/foo label applied) labels Apr 21, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-action to a fixed commit SHA in labeler.yaml and slash-commands.yaml.
  • Split checkout logic in labeler.yaml to 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-group Indicates an issue or PR that has not been assigned a group (toc or tag/foo label applied) needs-kind Indicates an issue or PR that is missing an issue type or kind (a kind/foo label) needs-triage Indicates an issue or PR that has not been triaged yet (has a 'triage/foo' label applied)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants