chore(security): remove GitHub Actions caching to prevent cache poisoning #1209
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.
Description
Context
This PR updates our GitHub Actions workflows to use artifacts instead of caching for better control over build outputs. The changes affect the
lint-build-test.yml
andpublish-release.yml
workflows.Changes
cache: yarn
configurations from all Node.js setup steps inlint-build-test.yml
publish-release.yml
workflow to:checkout@v4
,setup-node@v4
)upload-artifact@v4
anddownload-artifact@v4
Implementation Details
This change replaces the GitHub Actions caching mechanism with artifacts for managing build outputs between jobs. This provides more explicit control over how build artifacts are handled and transferred throughout the workflow.
Performance Considerations
Build times may slightly increase without caching, but the artifact implementation ensures efficient transfer of build outputs between jobs. We can monitor and optimize if needed.
Breaking Changes
None. This is an internal workflow change that doesn't affect the published packages or their consumers.
Testing Instructions
Related Issues
#3925 - Remove usage of GitHub action caching from critical workflows