Skip to content

Enable OpenSSF Scorecard Github Action#7404

Merged
dmcgowan merged 1 commit intocontainerd:mainfrom
joycebrum:main
Sep 20, 2022
Merged

Enable OpenSSF Scorecard Github Action#7404
dmcgowan merged 1 commit intocontainerd:mainfrom
joycebrum:main

Conversation

@joycebrum
Copy link
Copy Markdown
Contributor

Hi, I've openned the PR in the wrong repo (containerd/project#91 and containerd/project#92)

Here is the activation of the Scorecard Github Action and Badge to the containerd correct repo.

Thanks!

@k8s-ci-robot
Copy link
Copy Markdown

Hi @joycebrum. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Comment thread .github/workflows/scorecards.yml Outdated
Comment thread README.md Outdated
Copy link
Copy Markdown
Member

@kzys kzys left a comment

Choose a reason for hiding this comment

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

Squashing the commits into one?


steps:
- name: "Checkout code"
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3.0.0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How about using tags instead of SHA1 digests? Existing actions generally use tags.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @kzys , the OpenSSF recommends pinning to hashes instead of versions in order to protect against tag-renaming attacks (whereby an attacker hijacks an action, uploads a malicious version and replaces an existing tag with the malicious version).

However, we're aware there are pros and cons to this approach, so if you still prefer I can modify the workflow to use versions instead of hashes.

Copy link
Copy Markdown
Member

@samuelkarp samuelkarp left a comment

Choose a reason for hiding this comment

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

Thanks for removing the badge and upload. Please squash the four commits into one or remove the three no-op commits; we don't need them to remain in our git history.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants