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

docs: update installation to cover the Action and to receive updates #523

Merged
merged 11 commits into from
Mar 10, 2023

Conversation

laurentsimon
Copy link
Contributor

closes #522

Signed-off-by: laurentsimon <[email protected]>
Signed-off-by: laurentsimon <[email protected]>
Signed-off-by: laurentsimon <[email protected]>
Signed-off-by: laurentsimon <[email protected]>
Signed-off-by: laurentsimon <[email protected]>
Signed-off-by: laurentsimon <[email protected]>
@laurentsimon
Copy link
Contributor Author

@mihaimaruseac would appreciate if you could try this setup and confirm you don't encounter problems

@laurentsimon laurentsimon changed the title doc: update installation to cover the Action and to receive updates docs: update installation to cover the Action and to receive updates Mar 9, 2023
README.md Outdated
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 dependencies.
If you install the verifier in CI, we strongly recommend you follow the steps below to keep the verifier up-to-date:

1. Create a tooling/slsa-verifier.go file containing the following:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I want to say that folks used to use this pattern with a file name like *_test.go for a reason, but it escapes me what that reason is. In any case you probably want to name the file like tools.go and that way they can list any CLI tools they need in the same file.

Also, Go doesn't really like file names with hyphen in them, but I don't think it really matters so much in this case.

Copy link
Contributor Author

@laurentsimon laurentsimon Mar 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated the filename to tooling_test.go

README.md Outdated
1. To install the verifier in your CI, run the following commands:
```bash
$ cd tooling
$ go install github.com/slsa-framework/slsa-verifier/v2/cli/slsa-verifier
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, go install github.com/slsa-framework/slsa-verifier/v2/cli/slsa-verifier can be run from anywhere. I think you want to do something like go install . which will install all of the tooling listed in your tools.go or whatever.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried go install . and it did not work: import "github.com/slsa-framework/slsa-verifier/v2/cli/slsa-verifier" is a program, not an importable package. I've replaced the command with grep _ tooling_test.go | cut -f2 -d '"' | xargs -n1 -t go install. ptal

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will merge for the RC, @ianlewis if you have feedback let me know

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kind of thought there was a more convenient way of installing them but maybe I'm misremembering. It's been a while since I've seen/used this pattern.

Signed-off-by: laurentsimon <[email protected]>
Signed-off-by: laurentsimon <[email protected]>
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
laurentsimon and others added 3 commits March 10, 2023 12:48
Co-authored-by: asraa <[email protected]>
Signed-off-by: laurentsimon <[email protected]>
Co-authored-by: asraa <[email protected]>
Signed-off-by: laurentsimon <[email protected]>
@asraa asraa merged commit 20b0642 into slsa-framework:main Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

doc: document how to receive updates for manually-install slsa-verifier
3 participants