Skip to content

Allow truffle to fail silently on package fetch error - #216

Merged
Jeffreyhung merged 5 commits into
mainfrom
allow-truffle-to-fail-on-package-fetch-error
Sep 11, 2026
Merged

Jeffreyhung merged 5 commits into
mainfrom
allow-truffle-to-fail-on-package-fetch-error

Conversation

@Jeffreyhung

@Jeffreyhung Jeffreyhung commented Sep 11, 2026 •

Copy link
Copy Markdown
Member
  • if any of the truffle package setup steps failed, the workflow will continue on error and send logs to SIEM, then complete the workflow as success
  • reverting the retry to --retry 3 --retry-delay 5 to minimize the time, 2 min waiting period is too long
  • keeping --github-actions for truffle scan so that the secrets will be flagged in PR directly

Reasoning:
The chance of truffle package setup failure is low and we rather maintain usability than enforce secret scan, hence if it ever ran into error, we allow it to fail silently without blocking the PR

@Jeffreyhung
Jeffreyhung requested a review from a team as a code owner September 11, 2026 16:46
Comment thread .github/workflows/secret-scan.yml

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3928ad9. Configure here.

Comment thread .github/workflows/secret-scan.yml
Comment thread .github/workflows/secret-scan.yml
geoffg-sentry and others added 2 commits September 11, 2026 13:15
A setup failure now leaves a green check, so without an annotation there is
no sign on the PR that the change went unscanned. Report which stage broke.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
always() is true even when cancelled, so ANDing it with !cancelled() reduces
to !cancelled(), which is the form GitHub recommends.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

@geoffg-sentry geoffg-sentry left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closed my #215 in favour of this. It drops a couple of things I was doing for additional redundancy, but I think I prefer the simpler design for troubleshooting purposes.

@Jeffreyhung
Jeffreyhung merged commit d1aca07 into main Sep 11, 2026
10 checks passed
@Jeffreyhung
Jeffreyhung deleted the allow-truffle-to-fail-on-package-fetch-error branch September 11, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants