Skip to content

Commit

Permalink
Even prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ewokcami committed Oct 12, 2023
1 parent 5cf4947 commit 64a1833
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22057,11 +22057,11 @@ function run() {
core.info(`Scanning repository ${repoName}`);
const options = [
`--namespace=${NAMESPACE}`,
`--show-progress=${SHOW_PROGRESS}`, // deprecated
`--show-progress=${SHOW_PROGRESS}`,
`--verbose=${LOG_VERBOSE}`,
`--output-type=${SCAN_SUMMARY_OUTPUT_TYPE}`,
`--log-level=${LOG_LEVEL}`,
`--ci-run=${CI_RUN}`, // deprecated
`--ci-run=${CI_RUN}`,
`--pr=${SCAN_PR}`,
];
if (API)
Expand All @@ -22077,7 +22077,7 @@ function run() {
}
if (ENABLE_PR_COMMENTS && GITHUB_PR_ID) {
if (!CI_RUN && !SCAN_PR) {
core.error( "The `pr` option must be enabled for PR comments. Either set `pr: \"true\"` or disable PR comments");
core.error("The `pr` option must be enabled for PR comments. Either set `pr: "true"` or disable PR comments");
}
else if (!GITHUB_TOKEN) {
core.error("GITHUB_TOKEN is required for PR comments");
Expand All @@ -22088,7 +22088,7 @@ function run() {
}
if (SCAN_PR_BASELINE) {
if (!CI_RUN && !SCAN_PR) {
core.error("The `pr` option must also be enabled if `pr_baseline` is set. Either set `pr: \"true\"` or remove the PR baseline");
core.error("The `pr` option must also be enabled if `pr_baseline` is set. Either set `pr: "true"` or remove the PR baseline");
}
else {
options.push(`--pr-baseline=${SCAN_PR_BASELINE}`);
Expand Down

0 comments on commit 64a1833

Please sign in to comment.