Skip to content

ci: build without sccache when S3 credentials are unavailable#623

Merged
srperens merged 1 commit into
mainfrom
ci-sccache-dependabot-fallback
Jun 3, 2026
Merged

ci: build without sccache when S3 credentials are unavailable#623
srperens merged 1 commit into
mainfrom
ci-sccache-dependabot-fallback

Conversation

@srperens
Copy link
Copy Markdown
Collaborator

@srperens srperens commented Jun 3, 2026

Summary

All five open dependabot PRs fail CI identically: workflow runs triggered by Dependabot (and forks) do not receive Actions secrets, so SCCACHE_S3_ACCESS_KEY_ID/SECRET are empty and sccache hard-fails server startup with InvalidAccessKeyId against the MinIO backend, killing every job at the first cargo clippy.

Changes

  • Set RUSTC_WRAPPER once at workflow level, gated on the secret being present (sccache when available, empty string otherwise — cargo ignores an empty wrapper). Replaces the 16 per-step RUSTC_WRAPPER: sccache lines.
  • Skip the Setup sccache steps when credentials are missing, so the action's post-job stats step doesn't fail the same way.

Dependabot/fork PRs now build without the compile cache (slower but green); runs with secrets are unchanged.

🤖 Generated with Claude Code

Dependabot- and fork-triggered workflow runs do not receive Actions
secrets, so sccache started with empty S3 credentials and hard-failed
every job with InvalidAccessKeyId. Gate RUSTC_WRAPPER on the secret
being present (set once at workflow level instead of per step) and skip
the sccache setup step when credentials are missing, so those runs
build without the compile cache instead of failing.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@srperens srperens merged commit fc3baf3 into main Jun 3, 2026
7 checks passed
@srperens srperens deleted the ci-sccache-dependabot-fallback branch June 3, 2026 13:00
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.

1 participant