You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://bestpractices.coreinfrastructure.org/projects/6729)
-[Compilation from source](#compilation-from-source)
89
-
-[Download the binary](#download-the-binary)
90
-
91
-
[Available options](#available-options)
92
-
93
-
-[Option list](#option-list)
94
-
-[Option details](#option-details)
95
-
96
-
[Verification for GitHub builders](#verification-for-github-builders)
97
-
98
-
-[Artifacts](#artifacts)
99
-
-[Containers](#containers)
100
-
101
-
[Verification for Google Cloud Build](#verification-for-google-cloud-build)
102
-
103
-
-[Artifacts](#artifacts-1)
104
-
-[Containers](#containers-1)
105
-
106
-
[Known Issues](#known-issues)
107
-
108
-
[Technical design](#technial-design)
109
-
110
-
-[Blog posts](#blog-posts)
111
-
-[Specifications](#specifications)
112
-
-[TOCTOU attacks](#toctou-attacks)
113
-
114
-
---
115
-
116
84
## Installation
117
85
118
86
You have two options to install the verifier.
@@ -122,15 +90,17 @@ You have two options to install the verifier.
122
90
#### Option 1: Install via go
123
91
124
92
If you want to install the verifier, you can run the following command:
93
+
125
94
```bash
126
-
$ go install github.com/slsa-framework/slsa-verifier/v2/cli/slsa-verifier@v2.1.0
95
+
$ go install github.com/slsa-framework/slsa-verifier/v2/cli/slsa-verifier@v2.2.0
127
96
$ slsa-verifier <options>
128
97
```
129
98
130
-
Tools like [dependabot](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates) or [renovate](https://github.com/renovatebot/renovate) use your project's go.mod to identify the version of your Go dependencies.
99
+
Tools like [dependabot](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates) or [renovate](https://github.com/renovatebot/renovate) use your project's go.mod to identify the version of your Go dependencies.
131
100
If you install the verifier binary in CI, we strongly recommend you create a placeholder `go.mod` containing slsa-verifier as a dependency to receive updates and keep the binary up-to-date. Use the following the steps:
132
101
133
102
1. Create a tooling/tooling_test.go file containing the following:
103
+
134
104
```go
135
105
//go:build tools
136
106
// +build tools
@@ -143,38 +113,42 @@ import (
143
113
```
144
114
145
115
1. Run the following commands in the tooling directory. (It will create a go.sum file.)
116
+
146
117
```bash
147
118
$ go mod init <your-project-name>-tooling
148
119
$ go mod tidy
149
120
```
150
121
151
122
1. Commit the tooling folder (containing the 3 files tooling_test.go, go.mod and go.sum) to the repository.
152
123
1. To install the verifier in your CI, run the following commands:
If you need to install the verifier to run in a GitHub workflow, use the installer Action as described in [actions/installer/README.md](./actions/installer/README.md).
174
148
175
149
### Download the binary
176
150
177
-
Download the binary from the latest release at [https://github.com/slsa-framework/slsa-verifier/releases/tag/v2.1.0](https://github.com/slsa-framework/slsa-verifier/releases/tag/v2.1.0)
151
+
Download the binary from the latest release at [https://github.com/slsa-framework/slsa-verifier/releases/tag/v2.2.0](https://github.com/slsa-framework/slsa-verifier/releases/tag/v2.2.0)
178
152
179
153
Download the [SHA256SUM.md](https://github.com/slsa-framework/slsa-verifier/blob/main/SHA256SUM.md).
0 commit comments