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

Pin GitHub Actions to Git commit hash #27

Open
4 tasks done
achrinza opened this issue May 14, 2022 · 0 comments
Open
4 tasks done

Pin GitHub Actions to Git commit hash #27

achrinza opened this issue May 14, 2022 · 0 comments
Assignees

Comments

@achrinza
Copy link
Member

achrinza commented May 14, 2022

Currently, we're inconsistently referencing third-party GitHub Actions by Git tags, Git branches and the Git commit hash.

Git tags and Git branches can be re-pointed to a different Git commit hash without our explicit knowledge. Hence, this poses a security risk as a malicious GitHub Action that we depend on can go under the radar without our knowledge.

We should standardise on referencing by Git commit hash.

Renovate currently handles keeping the GitHub Actions up-to-date. It supports updating Git commit hash while following the Git tags:

The syntax would be either of the following:

- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2.4.0
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # tag=v2.4.0
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0

Loosely-related to #25 (Part of OpenSSF Scorecard check).

GitHub repositories

@achrinza achrinza self-assigned this Aug 28, 2022
achrinza added a commit to loopbackio/loopback-next that referenced this issue Aug 28, 2022
achrinza added a commit to loopbackio/loopback-next that referenced this issue Aug 28, 2022
achrinza added a commit to loopbackio/loopback-next that referenced this issue Aug 28, 2022
achrinza added a commit to loopbackio/loopback-next that referenced this issue Aug 28, 2022
achrinza added a commit to loopbackio/loopback-next that referenced this issue Aug 28, 2022
achrinza added a commit to loopbackio/loopback-connector that referenced this issue Aug 28, 2022
achrinza added a commit to loopbackio/loopback-connector that referenced this issue Aug 28, 2022
achrinza added a commit to loopbackio/loopback.io that referenced this issue Aug 28, 2022
achrinza added a commit to loopbackio/loopback-connector that referenced this issue Aug 28, 2022
achrinza added a commit to loopbackio/loopback.io that referenced this issue Sep 3, 2022
achrinza added a commit to loopbackio/loopback-next that referenced this issue Sep 8, 2022
achrinza added a commit to loopbackio/loopback-next that referenced this issue Sep 8, 2022
achrinza added a commit to loopbackio/loopback-connector-mongodb that referenced this issue Oct 24, 2022
- Prepare Renovate config for v6.x branch
- Tidy pipeline code
- Drop uneeded test matrix (semver-major release)
- Pin GitHub Actions action to Git commit hash

see: loopbackio/security#27
see: #720
Signed-off-by: Rifa Achrinza <[email protected]>
achrinza added a commit to loopbackio/cicd that referenced this issue Aug 30, 2023
achrinza added a commit to loopbackio/cicd that referenced this issue Aug 30, 2023
achrinza added a commit to loopbackio/strong-soap that referenced this issue Oct 26, 2023
achrinza added a commit to loopbackio/strong-soap that referenced this issue Oct 26, 2023
achrinza added a commit to loopbackio/strong-soap that referenced this issue Oct 26, 2023
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 9, 2023
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 9, 2023
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 9, 2023
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 9, 2023
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Current/Backlog
Development

No branches or pull requests

1 participant