(build) add actions/attest-build-provenance #4265
Merged
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.
This pull request includes several changes to improve the artifact management and build processes in the GitHub Actions workflows. The most important changes include the addition of new actions for artifact attestation and cache restoration, as well as updates to existing workflows to use these new actions.
New Actions Added:
.github/actions/artifacts-attest/action.yml
: Added a new action for artifact attestation..github/actions/cache-restore/action.yml
: Added a new action for cache restoration.Workflow Updates:
.github/workflows/_artifacts_linux.yml
,.github/workflows/_artifacts_windows.yml
,.github/workflows/_build.yml
,.github/workflows/_docker.yml
,.github/workflows/_docker_manifests.yml
,.github/workflows/_publish.yml
,.github/workflows/_unit_tests.yml
,.github/workflows/ci.yml
,.github/workflows/docs.yml
: Updated to use the newcache-restore
action instead ofartifacts-restore
. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Permissions and Configuration:
.github/workflows/ci.yml
: Updated permissions to includeid-token: write
andattestations: write
.build/CI.sln
: Added new project sections for the new actions and cleaned up unused sections. [1] [2] [3]These changes streamline the artifact management process and enhance the security and efficiency of the CI/CD pipeline.