mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-02-14 17:49:58 +00:00
feat: Bazel not experimental (#850)
Followup to #840 Resolves #849 Removes the experimental flag for verifying bazel attestations. TODO: - [ ] add example invocation for bazel https://github.com/slsa-framework/slsa-verifier/pull/858#pullrequestreview-2947145690 - [ ] create a new release --------- Signed-off-by: Ramon Petgrave <32398091+ramonpetgrave64@users.noreply.github.com>
This commit is contained in:
@@ -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 artifact attestation",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
v := verify.VerifyGithubAttestationCommand{
|
||||
AttestationPath: o.AttestationPath,
|
||||
|
||||
@@ -17,7 +17,6 @@ package verify
|
||||
import (
|
||||
"context"
|
||||
"crypto/sha256"
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user