Skip to content

Pin GitHub actions using Frizbee#12082

Merged
jan-cerny merged 1 commit into
ComplianceAsCode:masterfrom
jhrozek:pin_actions
Jul 1, 2024
Merged

Pin GitHub actions using Frizbee#12082
jan-cerny merged 1 commit into
ComplianceAsCode:masterfrom
jhrozek:pin_actions

Conversation

@jhrozek
Copy link
Copy Markdown
Collaborator

@jhrozek jhrozek commented Jun 20, 2024

Hey 👋🏻 !

Description:

This commit pins actions to their commit hash. If this is of interest to CaC, I can also open another PR with an action that does it automatically.

Rationale:

Pinning actions to their commit hash ensures that the same version of the image or action is used every time the workflow runs. This is important for reproducibility and security.

Pinning is a security practice recommended by GitHub

Review Hints:

You can check that the hashes correspond to the tags manually, but that's quite a bit of manual labor. That's why we developed a tool that automates pinning of actions and container images.

This commit pins actions to their commit hash.

Pinning actions to their commit hash ensures that the same
version of the image or action is used every time the workflow runs.
This is important for reproducibility and security.

Pinning is a security practice recommended by
GitHub:
https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions
@github-actions
Copy link
Copy Markdown

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@github-actions
Copy link
Copy Markdown

🤖 A k8s content image for this PR is available at:
ghcr.io/complianceascode/k8scontent:12082
This image was built from commit: 5e2879a

Click here to see how to deploy it

If you alread have Compliance Operator deployed:
utils/build_ds_container.py -i ghcr.io/complianceascode/k8scontent:12082

Otherwise deploy the content and operator together by checking out ComplianceAsCode/compliance-operator and:
CONTENT_IMAGE=ghcr.io/complianceascode/k8scontent:12082 make deploy-local

@qlty-cloud-legacy
Copy link
Copy Markdown

Code Climate has analyzed commit 5e2879a and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 59.4% (0.0% change).

View more on Code Climate.

@jan-cerny jan-cerny self-assigned this Jun 28, 2024
@jan-cerny jan-cerny added this to the 0.1.74 milestone Jun 28, 2024
@marcusburghardt marcusburghardt added the Test Suite Update in Test Suite. label Jul 1, 2024
@jan-cerny jan-cerny modified the milestone: 0.1.74 Jul 1, 2024
@jan-cerny jan-cerny merged commit 52f5a63 into ComplianceAsCode:master Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Test Suite Update in Test Suite.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants