ci: replace disallowed third-party actions in build workflow#16
Merged
Conversation
ASF infra restricts GitHub Actions to a curated allowlist. The Build workflow added in apache#15 used dtolnay/rust-toolchain and Swatinem/rust-cache, both of which fail the policy check and cause the workflow to abort with a startup_failure before any step runs. Drop the rust-toolchain action — ubuntu-latest runners already ship with rustup, so a plain run step that refreshes and defaults to stable covers the same ground. Swap the cargo cache to actions/cache@v4 keyed on native/Cargo.lock and pointing at the cargo registry, git, and the native target directory.
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.
Which issue does this PR close?
Follow-up to #15.
Rationale for this change
The Build workflow added in #15 fails immediately on every run with
startup_failure:ASF infra restricts GitHub Actions to a curated allowlist (mostly
actions/*plus a small set of approved third parties). Bothdtolnay/rust-toolchainandSwatinem/rust-cachefall outside that list, so the workflow aborts before any step runs and main currently has no working CI.What changes are included in this PR?
dtolnay/rust-toolchain@stable.ubuntu-latestrunners already ship withrustupand a stable toolchain, so a plainrunstep (rustup update stable && rustup default stable) is sufficient.Swatinem/rust-cache@v2withactions/cache@v4, keyed onnative/Cargo.lockand caching~/.cargo/registry,~/.cargo/git, andnative/target.How are these changes tested?
Verified that the previous run on
main(commit 058840a) failed withstartup_failuredue to the disallowed action. CI on this PR will exercise the replacement steps end-to-end before merge.