-
-
Notifications
You must be signed in to change notification settings - Fork 7
Attest build provenance #1844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attest build provenance #1844
Conversation
WalkthroughThe changes made across multiple GitHub Actions workflow files ( Changes
Poem
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- .github/workflows/darwin-arm64.yml (6 hunks)
- .github/workflows/darwin-x64.yml (6 hunks)
- .github/workflows/linux.yml (6 hunks)
- .github/workflows/win32.yml (6 hunks)
Additional comments not posted (24)
.github/workflows/linux.yml (6)
24-25
: Permissions settings forlist
job look appropriate.The permissions are set to read-only for contents, which is suitable for a job that lists available Perl versions without modifying any resources.
43-44
: Permissions settings forsanity-check
job look appropriate.Setting the permissions to read-only for contents is appropriate for a job that checks pre-installed Perl versions and performs sanity checks without modifying any resources.
72-75
: Permissions settings forbuild
job look appropriate.The permissions are expanded to include write access for contents, id-token, and attestations which aligns with the job's requirements to perform builds, handle authentication, and manage build attestations.
114-117
: Proper integration ofactions/attest-build-provenance@v1
.The step correctly configures the
subject-path
for the build artifact, which is crucial for attesting build provenance. Ensure that the path is correctly referenced and accessible at this stage of the workflow.
131-134
: Permissions settings forbuild-multi-thread
job look appropriate.Similar to the
build
job, the permissions settings are appropriately configured to allow necessary write operations and handling of build attestations for multi-threaded builds.
167-170
: Proper integration ofactions/attest-build-provenance@v1
for multi-threaded build.The configuration is consistent with the single-threaded build, ensuring that build provenance is attested correctly. Validation of the
subject-path
remains important..github/workflows/darwin-x64.yml (6)
24-25
: Permissions settings forlist
job look appropriate.The permissions are set to read-only for contents, which is suitable for a job that lists available Perl versions without modifying any resources.
43-44
: Permissions settings forsanity-check
job look appropriate.Setting the permissions to read-only for contents is appropriate for a job that checks pre-installed Perl versions and performs sanity checks without modifying any resources.
72-75
: Permissions settings forbuild
job look appropriate.The permissions are expanded to include write access for contents, id-token, and attestations which aligns with the job's requirements to perform builds, handle authentication, and manage build attestations.
114-117
: Proper integration ofactions/attest-build-provenance@v1
.The step correctly configures the
subject-path
for the build artifact, which is crucial for attesting build provenance. Ensure that the path is correctly referenced and accessible at this stage of the workflow.
131-134
: Permissions settings forbuild-multi-thread
job look appropriate.Similar to the
build
job, the permissions settings are appropriately configured to allow necessary write operations and handling of build attestations for multi-threaded builds.
175-178
: Proper integration ofactions/attest-build-provenance@v1
for multi-threaded build.The configuration is consistent with the single-threaded build, ensuring that build provenance is attested correctly. Validation of the
subject-path
remains important..github/workflows/darwin-arm64.yml (6)
24-25
: Permissions settings forlist
job look appropriate.The permissions are set to read-only for contents, which is suitable for a job that lists available Perl versions without modifying any resources.
43-44
: Permissions settings forsanity-check
job look appropriate.Setting the permissions to read-only for contents is appropriate for a job that checks pre-installed Perl versions and performs sanity checks without modifying any resources.
72-75
: Permissions settings forbuild
job look appropriate.The permissions are expanded to include write access for contents, id-token, and attestations which aligns with the job's requirements to perform builds, handle authentication, and manage build attestations.
114-117
: Proper integration ofactions/attest-build-provenance@v1
.The step correctly configures the
subject-path
for the build artifact, which is crucial for attesting build provenance. Ensure that the path is correctly referenced and accessible at this stage of the workflow.
131-134
: Permissions settings forbuild-multi-thread
job look appropriate.Similar to the
build
job, the permissions settings are appropriately configured to allow necessary write operations and handling of build attestations for multi-threaded builds.
175-178
: Proper integration ofactions/attest-build-provenance@v1
for multi-threaded build.The configuration is consistent with the single-threaded build, ensuring that build provenance is attested correctly. Validation of the
subject-path
remains important..github/workflows/win32.yml (6)
24-25
: Permissions set correctly for thelist
job.This ensures the job has the necessary access to perform its operations securely.
43-44
: Permissions set correctly for thesanity-check
job.This ensures the job has the necessary access to perform its operations securely.
79-82
: Permissions set correctly for thebuild
job.This ensures the job has the necessary access to perform its operations securely, especially with the new attest-build-provenance step.
163-166
: Attest-build-provenance step added correctly.This step enhances security and traceability by attesting the build provenance with a specific subject path.
183-186
: Permissions set correctly for thebuild-multi-thread
job.This ensures the job has the necessary access to perform its operations securely, especially with the new attest-build-provenance step.
262-265
: Attest-build-provenance step added correctly in multi-thread build.This step enhances security and traceability by attesting the build provenance with a specific subject path in the multi-thread build job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- .github/workflows/linux.yml (6 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/linux.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- .github/workflows/darwin-arm64.yml (5 hunks)
- .github/workflows/darwin-x64.yml (5 hunks)
- .github/workflows/linux.yml (5 hunks)
- .github/workflows/win32.yml (5 hunks)
Files skipped from review as they are similar to previous changes (4)
- .github/workflows/darwin-arm64.yml
- .github/workflows/darwin-x64.yml
- .github/workflows/linux.yml
- .github/workflows/win32.yml
Summary by CodeRabbit