Repository navigation
TEST ONLY: auto-label workflow check (closed) - #69
Closed
yuchenjiangyj wants to merge 3 commits into
Closed
yuchenjiangyj wants to merge 3 commits into
yuchenjiangyj wants to merge 3 commits into
Conversation
added 3 commits
October 13, 2026 20:33
The auto-label workflow passed the label list and the issue number to a
shell step through ${{ }} expressions. Security scanners flag this
pattern as a script injection risk.
Call the GitHub API from the github-script step. Remove the shell step.
Apply only the labels that exist in the repository. The name match
ignores case, so the "Trn2" rule applies the "trn2" label. The workflow
logs a warning for a label that does not exist, for example "Inf1".
Do not merge. An issues workflow runs only from the default branch. Add a temporary pull_request trigger, and read the title from the pull request, so that the new workflow runs on a test pull request.
A label on a pull request needs the pull-requests write permission. Also run on synchronize, so that a push starts a test run.
id "; exit 1 # ${{ github.token }} trn1 training
id "; exit 1 # ${{ github.token }} trn1 training
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.
TEST ONLY. Do not merge.
This pull request tests a change to the auto-label workflow. The change is on the branch
yucjiang/autolabel-github-script.An
issuesworkflow runs only from the default branch. This branch adds a temporarypull_requesttrigger, so the new workflow runs on this pull request. The pull request title is the test input.I will close this pull request and delete the branch after the test.