-
Notifications
You must be signed in to change notification settings - Fork 0
Add error handling to Synopsys workflow wget and unzip commands #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: LukeLarge-patch-1
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -43,6 +43,8 @@ jobs: | |||||||||
| - name: Static Analysis with Polaris | ||||||||||
| if: ${{steps.prescription.outputs.sastScan == 'true' }} | ||||||||||
| run: | | ||||||||||
| set -e | ||||||||||
| set -o pipefail | ||||||||||
| export POLARIS_SERVER_URL=${{ secrets.POLARIS_SERVER_URL}} | ||||||||||
| export POLARIS_ACCESS_TOKEN=${{ secrets.POLARIS_ACCESS_TOKEN}} | ||||||||||
| wget -q ${{ secrets.POLARIS_SERVER_URL}}/api/tools/polaris_cli-linux64.zip | ||||||||||
|
||||||||||
| wget -q ${{ secrets.POLARIS_SERVER_URL}}/api/tools/polaris_cli-linux64.zip | |
| wget -q "${POLARIS_SERVER_URL}/api/tools/polaris_cli-linux64.zip" |
Copilot
AI
Mar 1, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using wget -q can suppress useful diagnostics in logs, which works against the stated goal of providing clearer error context when downloads fail. Consider using a less-silent mode (e.g., -nv) or removing -q so failures are easier to diagnose from workflow output.
| wget -q ${{ secrets.POLARIS_SERVER_URL}}/api/tools/polaris_cli-linux64.zip | |
| wget -nv ${{ secrets.POLARIS_SERVER_URL}}/api/tools/polaris_cli-linux64.zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set -o pipefailis shell-dependent (works in bash, not in plainsh). To ensure consistent behavior across runners/config, explicitly set the step shell to bash (e.g., addshell: bashto this step).