Skip to content
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

ci: Ensure SLSA Lvl 3 #904

Merged
merged 11 commits into from
Oct 21, 2024
Merged

ci: Ensure SLSA Lvl 3 #904

merged 11 commits into from
Oct 21, 2024

Conversation

viccuad
Copy link
Member

@viccuad viccuad commented Oct 4, 2024

Description

Fix #898.

Adapted the work already done by @jvanz from kubewarden/audit-scanner#387 (hence, set @jvanz as Co-authored-by).

Test

Tested by tagging on my fork as v1.18.0-viccuad.
See:
https://github.com/viccuad/kubewarden-controller/actions/runs/11403999799 (release only fails in the last bot pr step)
https://github.com/viccuad/kubewarden-controller/releases/tag/v1.18.0-viccuad9

Additional Information

Tradeoff

Potential improvement

@viccuad viccuad requested a review from a team as a code owner October 4, 2024 11:10
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.97%. Comparing base (60f16ca) to head (33efb6f).
Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #904      +/-   ##
==========================================
- Coverage   70.65%   68.97%   -1.69%     
==========================================
  Files          30       30              
  Lines        2559     3052     +493     
==========================================
+ Hits         1808     2105     +297     
- Misses        582      777     +195     
- Partials      169      170       +1     
Flag Coverage Δ
integration-tests 57.94% <ø> (-2.49%) ⬇️
unit-tests 40.41% <ø> (+1.19%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@viccuad viccuad marked this pull request as draft October 4, 2024 12:31
@viccuad viccuad force-pushed the slsa branch 6 times, most recently from 30fba55 to 6066471 Compare October 8, 2024 10:59
@viccuad viccuad marked this pull request as ready for review October 8, 2024 11:00
@viccuad viccuad self-assigned this Oct 8, 2024
README.md Outdated Show resolved Hide resolved
.github/workflows/sign-image.yml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@viccuad viccuad force-pushed the slsa branch 2 times, most recently from efac9fe to fe1f8c1 Compare October 9, 2024 12:22
Copy link
Contributor

@jhkrug jhkrug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor suggestions for consideration.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@viccuad
Copy link
Member Author

viccuad commented Oct 9, 2024

Applied suggestions and rebased, as it was easier to keep the Co-authored-by. Sorry for the inconvenience.
Now the cosign verify use the specific regexp matching the workflow, and the workflow generates a checksum.txt of the files and signs only that file.

.github/workflows/attestation.yml Outdated Show resolved Hide resolved
.github/workflows/attestation.yml Outdated Show resolved Hide resolved
.github/workflows/container-image.yml Outdated Show resolved Hide resolved
Signed-off-by: Víctor Cuadrado Juan <[email protected]>
Signed-off-by: Víctor Cuadrado Juan <[email protected]>
viccuad and others added 9 commits October 18, 2024 20:04
Signed-off-by: Víctor Cuadrado Juan <[email protected]>
Signed-off-by: Víctor Cuadrado Juan <[email protected]>
Co-authored-by: José Guilherme Vanz <[email protected]>
Signed-off-by: Víctor Cuadrado Juan <[email protected]>
Co-authored-by: José Guilherme Vanz <[email protected]>
Signed-off-by: Víctor Cuadrado Juan <[email protected]>
Co-authored-by: José Guilherme Vanz <[email protected]>
Signed-off-by: Víctor Cuadrado Juan <[email protected]>
Co-authored-by: John Krug <[email protected]>
Signed-off-by: Víctor Cuadrado Juan <[email protected]>
Signed-off-by: Víctor Cuadrado Juan <[email protected]>
Signed-off-by: Víctor Cuadrado Juan <[email protected]>
We are not making use of a regexp anymore and provide fully qualified
identities.

Signed-off-by: Víctor Cuadrado Juan <[email protected]>
@viccuad
Copy link
Member Author

viccuad commented Oct 18, 2024

Rebased onto main to fix conflicts.

@viccuad viccuad merged commit 141a393 into kubewarden:main Oct 21, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure SLSA Lvl 3 in kubewarden-controller
4 participants