feat: allow custom labels for new issues

This commit is contained in:
Aaron Kelbsch
2025-08-25 15:50:51 +02:00
parent d1a8548176
commit d8774e016c
4 changed files with 19 additions and 6 deletions
+7 -1
View File
@@ -54,6 +54,7 @@ function removeTrailingSlash(str) {
}
export async function run(actionInput: input.Input): Promise<void> {
const labels = actionInput.new_issue_labels;
const ignore = actionInput.ignore;
const workingDirectory = removeTrailingSlash(actionInput.workingDirectory);
const report = await getData(ignore, workingDirectory);
@@ -97,7 +98,12 @@ export async function run(actionInput: input.Input): Promise<void> {
core.debug(
'Action was triggered on a schedule event, creating an Issues report',
);
await reporter.reportIssues(actionInput.token, advisories, warnings);
await reporter.reportIssues(
actionInput.token,
advisories,
warnings,
labels,
);
} else {
core.debug(
`Action was triggered on a ${github.context.eventName} event, creating a Check report`,