update error message

This commit is contained in:
Varun Sharma 2025-09-06 08:41:22 -07:00
commit 92fc5d4bf7
3 changed files with 3 additions and 3 deletions

2
dist/pre/index.js vendored
View file

@ -88137,7 +88137,7 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
lib_core.info(`[!] ${err}`);
// Only fail the job if ID token is not available
if (err.message && err.message.includes('Unable to get ACTIONS_ID_TOKEN_REQUEST')) {
lib_core.setFailed(err);
lib_core.setFailed('Policy store requires id-token write permission as it uses OIDC to fetch the policy from StepSecurity API. Please add "id-token: write" to your job permissions.');
}
else {
// Log other errors but don't fail the job

File diff suppressed because one or more lines are too long

View file

@ -87,7 +87,7 @@ interface MonitorResponse {
core.info(`[!] ${err}`);
// Only fail the job if ID token is not available
if (err.message && err.message.includes('Unable to get ACTIONS_ID_TOKEN_REQUEST')) {
core.setFailed(err);
core.setFailed('Policy store requires id-token write permission as it uses OIDC to fetch the policy from StepSecurity API. Please add "id-token: write" to your job permissions.');
} else {
// Log other errors but don't fail the job
core.error(`Failed to fetch policy: ${err}`);