bazel not experimental

Signed-off-by: Ramon Petgrave <32398091+ramonpetgrave64@users.noreply.github.com>
This commit is contained in:
Ramon Petgrave
2025-06-10 20:40:04 +00:00
parent f5b9bade66
commit 8fe548a083
3 changed files with 1 additions and 8 deletions
@@ -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"
+1 -1
View File
@@ -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,
@@ -35,12 +35,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)