slsabuild

command module
v0.0.0-...-3a7be5b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

slsabuild

Build projects and generate SLSA provenance

Getting Started

Create a config file slsabuild.yaml like the following:

# artifacts are outputs of the build.
artifacts: ["slsabuild"]

# commands are commands that are run to generate the artifacts.
commands:
  - command:
      [
        "go",
        "build",
        "-ldflags=-X sigs.k8s.io/release-utils/version.gitVersion={{ .Env.VERSION }}",
        ".",
      ]
    env:
      - "HOME={{ .Env.HOME }}"
      - "GOPATH={{ .Env.GOPATH }}"

Run slsabuild to build the project. This will run the commands to generate the artifact(s), generate provenance and sign it using keyless signing with Fulcio. The resulting certificate is uploaded to the public Rekor transparency log.

slsabuild

You should now see your artifact and <artifact>.intoto.jsonl.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL