mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-05 21:17:06 +00:00
update error message
This commit is contained in:
parent
b61b0a4938
commit
92fc5d4bf7
3 changed files with 3 additions and 3 deletions
2
dist/pre/index.js
vendored
2
dist/pre/index.js
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
dist/pre/index.js.map
vendored
2
dist/pre/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue