Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cli/slsa-verifier/main_regression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,6 @@ func Test_runVerifyGHAContainerBased(t *testing.T) {

func Test_runVerifyGithubAttestation(t *testing.T) {
t.Parallel()
os.Setenv("SLSA_VERIFIER_EXPERIMENTAL", "1")

bcrReleaserBuilderID := "https://github.com/bazel-contrib/.github/.github/workflows/release_ruleset.yaml"
bcrPublisherBuilderID := "https://github.com/bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml"
Expand Down
2 changes: 1 addition & 1 deletion cli/slsa-verifier/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func verifyGithubAttestation() *cobra.Command {
}
return nil
},
Short: "Verifies SLSA provenance for a github attestation [experimental]",
Short: "Verifies SLSA provenance for a github attestation",
Run: func(cmd *cobra.Command, args []string) {
v := verify.VerifyGithubAttestationCommand{
AttestationPath: o.AttestationPath,
Expand Down
7 changes: 0 additions & 7 deletions cli/slsa-verifier/verify/verify_github_attestation.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package verify
import (
"context"
"crypto/sha256"
"errors"
"fmt"
"os"

Expand All @@ -35,12 +34,6 @@ type VerifyGithubAttestationCommand struct {
}

func (c *VerifyGithubAttestationCommand) Exec(ctx context.Context, artifact string) (*utils.TrustedBuilderID, error) {
if !options.ExperimentalEnabled() {
err := errors.New("feature support is only provided in SLSA_VERIFIER_EXPERIMENTAL mode")
fmt.Fprintf(os.Stderr, "Verifying github attestation: FAILED: %v\n\n", err)
return nil, err
}

artifactHash, err := computeFileHash(artifact, sha256.New())
if err != nil {
fmt.Fprintf(os.Stderr, "Verifying artifact %s: FAILED: %v\n\n", artifact, err)
Expand Down
Loading