Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon committed Jun 7, 2022
1 parent a39cfc2 commit 75053cd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/slsa-goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test SLSA
name: SLSA releaser
on:
workflow_dispatch:
push:
Expand Down Expand Up @@ -26,10 +26,10 @@ jobs:
build:
permissions:
id-token: write
contents: read
contents: write
actions: read
needs: args
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v0.0.2
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.0.0
with:
go-version: 1.17
evaluated-envs: "VERSION_LDFLAGS:${{needs.args.outputs.ldflags}}"
evaluated-envs: "VERSION_LDFLAGS:${{needs.args.outputs.ldflags}}"
4 changes: 2 additions & 2 deletions .slsa-goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ flags:

goos: linux
goarch: amd64
binary: scorecard-{{ .OS }}-{{ .Arch }}
binary: scorecard-{{ .Os }}-{{ .Arch }}
ldflags:
- -s {{ .Env.VERSION_LDFLAGS }}
- -s {{ .Env.VERSION_LDFLAGS }}
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,13 @@ To install Scorecards as a standalone:

1. Visit our latest
[release page](https://github.com/ossf/scorecard/releases/latest) and
download the correct binary for your operating system
download the correct binary for your operating system
2. Extract the binary file
3. We are proud to be one of the the first repositories to generate non-forgeable SLSA3 provenance natively using the OSSF [slsa-framework/slsa-verifier](https://github.com/slsa-framework/slsa-verifier) project for our linux amd64 binary. If you use this binary, you can verify it by installing the [slsa-framework/slsa-verifier](https://github.com/slsa-framework/slsa-verifier#download-the-binary) and running:
```
$ ./slsa-verifier-linux-amd64 --artifact-path scorecard-linux-amd64 --provenance scorecard-linux-amd64.intoto.jsonl --source github.com/ossf/scorecard
```
This guarantees that the binary you downloaded was generated using the source code of this repository. If you're interested in reading more about SLSA, visit [slsa.dev](slsa.dev).
3. Add the binary to your `GOPATH/bin` directory (use `go env GOPATH` to
identify your directory if necessary)

Expand Down

0 comments on commit 75053cd

Please sign in to comment.