Skip to content

Commit 2950204

Browse files
feat: Bazel not experimental (#850)
Followup to #840 Resolves #849 Removes the experimental flag for verifying bazel attestations. TODO: - [ ] add example invocation for bazel #858 (review) - [ ] create a new release --------- Signed-off-by: Ramon Petgrave <[email protected]>
1 parent 08d54ab commit 2950204

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

cli/slsa-verifier/verify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func verifyGithubAttestation() *cobra.Command {
196196
}
197197
return nil
198198
},
199-
Short: "Verifies SLSA provenance for a github attestation [experimental]",
199+
Short: "Verifies SLSA provenance for a GitHub artifact attestation",
200200
Run: func(cmd *cobra.Command, args []string) {
201201
v := verify.VerifyGithubAttestationCommand{
202202
AttestationPath: o.AttestationPath,

cli/slsa-verifier/verify/verify_github_attestation.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package verify
1717
import (
1818
"context"
1919
"crypto/sha256"
20-
"errors"
2120
"fmt"
2221
"os"
2322

@@ -35,12 +34,6 @@ type VerifyGithubAttestationCommand struct {
3534
}
3635

3736
func (c *VerifyGithubAttestationCommand) Exec(ctx context.Context, artifact string) (*utils.TrustedBuilderID, error) {
38-
if !options.ExperimentalEnabled() {
39-
err := errors.New("feature support is only provided in SLSA_VERIFIER_EXPERIMENTAL mode")
40-
fmt.Fprintf(os.Stderr, "Verifying github attestation: FAILED: %v\n\n", err)
41-
return nil, err
42-
}
43-
4437
artifactHash, err := computeFileHash(artifact, sha256.New())
4538
if err != nil {
4639
fmt.Fprintf(os.Stderr, "Verifying artifact %s: FAILED: %v\n\n", artifact, err)

0 commit comments

Comments
 (0)