Switch sync-labels caller to public .github reusable#23
Merged
Conversation
Move the reusable workflow source from .github-private to the public .github repo. This is needed so trufflesecurity/helm-charts (a public repo) can use the same reusable; GitHub forbids public repos from consuming reusables that live in private/internal repos. Functionally identical: the reusable in .github is a verbatim copy of the one in .github-private, and it already references scripts and labels.yml from the public .github repo.
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.
Summary
sync-labels.ymlcaller workflow'suses:reference fromtrufflesecurity/.github-privatetotrufflesecurity/.github..githubrepo is a verbatim copy. The reusable already checks out scripts andlabels.ymlfrom public.github, so behavior is unchanged.Why
GitHub forbids public repos from consuming reusable workflows that live in private/internal repos, regardless of org-level Actions Access settings.
trufflesecurity/helm-chartsis the only public repo in the PR Labeling rollout, and it could not call the reusables in.github-private. Moving the reusables to public.github(already merged: trufflesecurity/.github#4) unblocks helm-charts. This PR switches each consumer to the public source so that.github-privatecan be cleaned up afterward.Test plan
gh workflow run sync-labels.yml --repo trufflesecurity/<this-repo>runs successfully and re-applies the 11 standard labelsNote
Low Risk
Single-line CI workflow reference change; no application code or data handling is modified.
Overview
Updates the
Sync LabelsGitHub Actions workflow to call the reusable label sync workflow fromtrufflesecurity/.githubinstead oftrufflesecurity/.github-private. This unblocks running the same label synchronization workflow from public repositories without changing behavior of the job itself.Reviewed by Cursor Bugbot for commit 0a7d3bf. Bugbot is set up for automated code reviews on this repo. Configure here.