feat: also write issues when manually triggered

This commit is contained in:
Aaron Kelbsch
2026-08-26 03:55:10 +02:00
committed by Dreaded_X
parent b7e98a4fa5
commit d18d2d8134
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 process from 'process';
import * as core from '@actions/core';
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 advisories = report.vulnerabilities.list;
if (github.context.eventName == 'schedule') {
if (
github.context.eventName == 'schedule' ||
github.context.eventName == 'workflow_dispatch'
) {
core.debug(
'Action was triggered on a schedule event, creating an Issues report',
);