Repository navigation
infra(ci): allowlist the S3 build-cache secrets (#3061 regression) - #3116
Merged
Merged
Conversation
Member
Author
|
Handed off to the coordinator. CI on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
#3061enabled the setup-soldr S3 remote build cache and gave 11zackees/setup-soldrsteps in.github/workflows/build-project.yamlanenv:withSOLDR_S3_CACHE_ACCESS_KEY/SOLDR_S3_CACHE_SECRET_KEYfrom repository secrets, without recording either name inci.toml's[allow].secrets. ci-lint's SEC-001 therefore reported all 22 references as violations on master, not as an approved baseline.Fixes #3115. Refs #3061.
Change
ci.toml:SOLDR_S3_CACHE_ACCESS_KEYandSOLDR_S3_CACHE_SECRET_KEYjoin[allow].secrets(the repository's record of which repository secrets its workflows may read). Removing them instead would remove the remote cache, and forks already run without it.ci/test_ci_toml.py:AllowSecretsTestpins the intent offline — both names are in the allowlist, and everyzackees/setup-soldrstep inbuild-project.yamlthat sets one sets both (a half-configured cache is a silent cache miss, not a failure).RED
257dbde46— on master,uv run python -m unittest ci.test_ci_toml.AllowSecretsTest:GREEN
ff0ce34e7.ci-lint precheck(uvx --from git+https://github.com/zackees/ci.yml@a1917ce76598904ce515cd7eec83450c317ea6f2 ci-lint precheck):1d07cff8aThe 22 SEC-001 violations are gone; the four left are the documented structural floor (CACHE-004, GEN-004, SEC-003, WF-003). Approved fell by exactly two, which is
release-rust.yaml:244-245— the same S3 pair there, now inside the allowlist; that file's SEC-001 exception still covers its other findings, so it stays.uv run ci/local_gate.py --only self-test→== self-test: ok(allci/test_*.py).uv run ruff check ci/test_ci_toml.py→ clean.No local gate stamp: this touches no Rust, C, CMake or build input, so PR CI's
Fast Gate+Format / checksare the whole gate.Notes
docs/features.md: no line — CI contract only, nothing a user sees.