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
-[Option 3: Use the installer Action](#option-3-use-the-installer-action)
23
24
-[Download the binary](#download-the-binary)
24
25
-[Available options](#available-options)
25
26
-[Option list](#option-list)
@@ -120,19 +121,52 @@ You have two options to install the verifier.
120
121
121
122
#### Option 1: Install via go
122
123
123
-
```
124
+
If you want to install the verifier, you can run the following command:
125
+
```bash
124
126
$ go install github.com/slsa-framework/slsa-verifier/v2/cli/[email protected]
125
127
$ slsa-verifier <options>
126
128
```
127
129
128
-
#### Option 2: Compile manually
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.
131
+
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
+
133
+
1. Create a tooling/tooling_test.go file containing the following:
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).
169
+
136
170
### Download the binary
137
171
138
172
Download the binary from the latest release at [https://github.com/slsa-framework/slsa-verifier/releases/tag/v2.0.1](https://github.com/slsa-framework/slsa-verifier/releases/tag/v2.0.1)
@@ -141,7 +175,7 @@ Download the [SHA256SUM.md](https://github.com/slsa-framework/slsa-verifier/blob
3. Update the latest version in the [README.md](./README.md):
113
+
3. Update the latest version in the main [README.md](./README.md) and the installer Action's [actions/installer/README.md](./actions/installer/README.md):
114
114
115
115
```shell
116
-
$ sed -i "s/v1.0.0/v1.1.1/g" ./README.md
116
+
$ sed -i "s/v1.0.0/v1.1.1/g" ./README.md ./actions/installer/README.md
117
117
```
118
118
119
119
4. Send a pull request with the changes. In the description:
See https://github.com/slsa-framework/slsa-verifier/releases for the list of available `slsa-verifier` releases.
18
-
19
-
For a full example workflow, see [../../.github/workflows/pre-submit.actions.yml](https://github.com/slsa-framework/slsa-verifier/.github/workflows/pre-submit.actions.yml).
17
+
See https://github.com/slsa-framework/slsa-verifier/releases for the list of available `slsa-verifier` releases. Only versions greater or equal to 2.0.1 are supported.
20
18
21
19
This action requires using GitHub-provided Linux runners.
0 commit comments