feat: also write issues when manually triggered

This commit is contained in:
Aaron Kelbsch
2025-08-25 15:37:02 +02:00
parent b0356b9add
commit 4869f6bfcf
2 changed files with 8 additions and 5 deletions
+3 -3
View File
File diff suppressed because one or more lines are too long
+5 -2
View File
@@ -1,5 +1,5 @@
import * as process from 'process';
import * as os from 'os'; import * as os from 'os';
import * as process from 'process';
import * as core from '@actions/core'; import * as core from '@actions/core';
import * as github from '@actions/github'; import * as github from '@actions/github';
@@ -90,7 +90,10 @@ export async function run(actionInput: input.Input): Promise<void> {
// const octokit = github.getOctokit(actionInput.token, {userAgent: USER_AGENT}); // const octokit = github.getOctokit(actionInput.token, {userAgent: USER_AGENT});
const advisories = report.vulnerabilities.list; const advisories = report.vulnerabilities.list;
if (github.context.eventName == 'schedule') { if (
github.context.eventName == 'schedule' ||
github.context.eventName == 'workflow_dispatch'
) {
core.debug( core.debug(
'Action was triggered on a schedule event, creating an Issues report', 'Action was triggered on a schedule event, creating an Issues report',
); );