Skip to content

Commit

Permalink
document renovate exception for generator to use tags instead of dige…
Browse files Browse the repository at this point in the history
…sts. (#1074)

Signed-off-by: Fabian Kammel <fk@edgeless.systems>

Signed-off-by: Fabian Kammel <fk@edgeless.systems>
  • Loading branch information
datosh authored Oct 18, 2022
1 parent d9ee714 commit e6d55de
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ reusable workflow. It also needs to be referred as `@vX.Y.Z`, because the build
This is contrary to the [GitHub best practice for third-party actions](https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions) which recommends referencing by digest, but intentional due to limits in GitHub Actions.
The desire to be able to verify reusable workflows pinned by hash, and the reasons for the current status, are tracked as [Issue #12](https://github.com/slsa-framework/slsa-verifier/issues/12) in the slsa-verifier project.

For guidance on how to configure renovate see [RENOVATE.md](RENOVATE.md).

### Builders

Builders build and generate provenance. They let you meet the [build](https://slsa.dev/spec/v0.1/requirements#build-requirements)
Expand Down
19 changes: 19 additions & 0 deletions RENOVATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Renovate Best Practices and SLSA-GitHub-Generator

Renovate helps users to enforce security best practices when continuously upgrading GitHub actions.

Renovate provides a configuration snippet, which is used by most GitHub projects, to [automatically pin dependencies using the digest](https://docs.renovatebot.com/presets-helpers/#helperspingithubactiondigests) instead of git tags: `helpers:pinGitHubActionDigests`.

To add an exception to this rule for slsa-github-generator add the following package rule to your `renovate.json` config.

```json
"packageRules": [
{
"matchManagers": ["github-actions"],
"matchPackageNames": ["slsa-framework/slsa-github-generator"],
"pinDigests": false
}
]
```

This will enable you to receive upgrades for the generator and keep the tagged version.

0 comments on commit e6d55de

Please sign in to comment.