mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-08-18 02:56:31 +00:00
bazel not experimental
Signed-off-by: Ramon Petgrave <32398091+ramonpetgrave64@users.noreply.github.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user