Skip to content

Commit d7aa406

Browse files
revert: "feat: produce sigstore Bundles for generic generator and go builder workflows" (#3985)
Reverts #3777 Lots of new failing errors in our e2e tests today. We may have missed something when testing these changes. For now, we should revert while we debug, and come up with more robust testing methods. - https://github.com/slsa-framework/example-package/actions/runs/11511156484/job/32044242878#step:6:125 - #3967 ``` **** Verifying provenance authenticity with verifier at HEAD ***** Testing against builder args **** Default parameters (annotated tags) ***** WARNING: Insecure SLSA_VERIFIER_TESTING is enabled. Verifying artifact hello: FAILED: missing signing certificate in bundle FAILED: SLSA verification failed: missing signing certificate in bundle ✖ 1 == 0 :: not main default parameters (annotated_tags) Error: Process completed with exit code 1. ```
1 parent 2333f37 commit d7aa406

File tree

12 files changed

+172
-341
lines changed

12 files changed

+172
-341
lines changed

.github/workflows/generator_generic_slsa3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160
with:
161161
repository: "${{ needs.detect-env.outputs.repository }}"
162162
ref: "${{ needs.detect-env.outputs.ref }}"
163-
go-version: "1.23.1"
163+
go-version: "1.21"
164164
binary: "${{ env.BUILDER_BINARY }}"
165165
compile-builder: "${{ inputs.compile-generator }}"
166166
directory: "${{ env.BUILDER_DIR }}"

CHANGELOG.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
<!-- toc -->
1111

1212
- [Unreleased](#unreleased)
13-
- [Unreleased: Sigstore Bundles for Generic Generator and Go Builder](#unreleased-sigstore-bundles-for-generic-generator-and-go-builder)
1413
- [Unreleased: Vars context recorded in provenance](#unreleased-vars-context-recorded-in-provenance)
1514
- [v2.0.0](#v200)
1615
- [v2.0.0: Breaking Change: upload-artifact and download-artifact](#v200-breaking-change-upload-artifact-and-download-artifact)
@@ -107,15 +106,6 @@ duplication."
107106

108107
## Unreleased
109108

110-
### Unreleased: Sigstore Bundles for Generic Generator and Go Builder
111-
112-
The workflows `generator_generic_slsa3.yml` and `builder_go_slsa3.yml`
113-
have been updated to produce signed Sigstore Bundles, just like all the other builders
114-
that use the BYOB framework.
115-
116-
The workflow logs will now print a LogIndex, rather than a LogUUID. Both are equally searchanble on
117-
https://search.sigstore.dev/.
118-
119109
### Unreleased: Vars context recorded in provenance
120110

121111
- **Updated**: GitHub `vars` context is now recorded in provenance for the generic and

github/oidc.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ const (
3939

4040
// OIDCToken represents the contents of a GitHub OIDC JWT token.
4141
type OIDCToken struct {
42-
// Expiry is the expiration date of the token.
43-
Expiry time.Time
44-
4542
// Issuer is the token issuer.
4643
Issuer string
4744

@@ -57,8 +54,8 @@ type OIDCToken struct {
5754
// ActorID is the unique ID of the actor who triggered the build.
5855
ActorID string `json:"actor_id"`
5956

60-
// RawToken is the unparsed oidc token.
61-
RawToken string
57+
// Expiry is the expiration date of the token.
58+
Expiry time.Time
6259

6360
// Audience is the audience for which the token was granted.
6461
Audience []string
@@ -250,8 +247,6 @@ func (c *OIDCClient) Token(ctx context.Context, audience []string) (*OIDCToken,
250247
return nil, err
251248
}
252249

253-
token.RawToken = tokenPayload
254-
255250
return token, nil
256251
}
257252

go.mod

Lines changed: 38 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/slsa-framework/slsa-github-generator
33
go 1.23.1
44

55
require (
6-
github.com/coreos/go-oidc/v3 v3.11.0
6+
github.com/coreos/go-oidc/v3 v3.10.0
77
github.com/go-openapi/strfmt v0.23.0
88
github.com/go-openapi/swag v0.23.0
99
github.com/google/go-cmp v0.6.0
@@ -13,10 +13,9 @@ require (
1313
github.com/secure-systems-lab/go-securesystemslib v0.8.0
1414
github.com/sigstore/cosign/v2 v2.2.4
1515
github.com/sigstore/rekor v1.3.6
16-
github.com/sigstore/sigstore v1.8.8
17-
github.com/sigstore/sigstore-go v0.6.0
18-
github.com/spf13/cobra v1.8.1
19-
golang.org/x/oauth2 v0.22.0
16+
github.com/sigstore/sigstore v1.8.3
17+
github.com/spf13/cobra v1.8.0
18+
golang.org/x/oauth2 v0.20.0
2019
gopkg.in/square/go-jose.v2 v2.6.0
2120
gopkg.in/yaml.v3 v3.0.1
2221
)
@@ -44,26 +43,26 @@ require (
4443
github.com/alibabacloud-go/debug v1.0.0 // indirect
4544
github.com/alibabacloud-go/endpoint-util v1.1.1 // indirect
4645
github.com/alibabacloud-go/openapi-util v0.1.0 // indirect
47-
github.com/alibabacloud-go/tea v1.2.2 // indirect
46+
github.com/alibabacloud-go/tea v1.2.1 // indirect
4847
github.com/alibabacloud-go/tea-utils v1.4.5 // indirect
4948
github.com/alibabacloud-go/tea-xml v1.1.3 // indirect
5049
github.com/aliyun/credentials-go v1.3.1 // indirect
5150
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
52-
github.com/aws/aws-sdk-go-v2 v1.27.2 // indirect
53-
github.com/aws/aws-sdk-go-v2/config v1.27.18 // indirect
54-
github.com/aws/aws-sdk-go-v2/credentials v1.17.18 // indirect
55-
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.5 // indirect
56-
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.9 // indirect
57-
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.9 // indirect
51+
github.com/aws/aws-sdk-go-v2 v1.26.0 // indirect
52+
github.com/aws/aws-sdk-go-v2/config v1.27.9 // indirect
53+
github.com/aws/aws-sdk-go-v2/credentials v1.17.9 // indirect
54+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.0 // indirect
55+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.4 // indirect
56+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.4 // indirect
5857
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
5958
github.com/aws/aws-sdk-go-v2/service/ecr v1.20.2 // indirect
6059
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.18.2 // indirect
61-
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 // indirect
62-
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.11 // indirect
63-
github.com/aws/aws-sdk-go-v2/service/sso v1.20.11 // indirect
64-
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.24.5 // indirect
65-
github.com/aws/aws-sdk-go-v2/service/sts v1.28.12 // indirect
66-
github.com/aws/smithy-go v1.20.2 // indirect
60+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1 // indirect
61+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.6 // indirect
62+
github.com/aws/aws-sdk-go-v2/service/sso v1.20.3 // indirect
63+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.3 // indirect
64+
github.com/aws/aws-sdk-go-v2/service/sts v1.28.5 // indirect
65+
github.com/aws/smithy-go v1.20.1 // indirect
6766
github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.0.0-20231024185945-8841054dbdb8 // indirect
6867
github.com/blang/semver v3.5.1+incompatible // indirect
6968
github.com/buildkite/agent/v3 v3.62.0 // indirect
@@ -89,7 +88,7 @@ require (
8988
github.com/fsnotify/fsnotify v1.7.0 // indirect
9089
github.com/go-chi/chi v4.1.2+incompatible // indirect
9190
github.com/go-jose/go-jose/v3 v3.0.3 // indirect
92-
github.com/go-jose/go-jose/v4 v4.0.2 // indirect
91+
github.com/go-jose/go-jose/v4 v4.0.1 // indirect
9392
github.com/go-logr/logr v1.4.1 // indirect
9493
github.com/go-logr/stdr v1.2.2 // indirect
9594
github.com/go-openapi/analysis v0.23.0 // indirect
@@ -106,9 +105,9 @@ require (
106105
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
107106
github.com/golang/protobuf v1.5.4 // indirect
108107
github.com/golang/snappy v0.0.4 // indirect
109-
github.com/google/certificate-transparency-go v1.2.1 // indirect
108+
github.com/google/certificate-transparency-go v1.1.8 // indirect
110109
github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 // indirect
111-
github.com/google/go-containerregistry v0.20.1 // indirect
110+
github.com/google/go-containerregistry v0.19.1 // indirect
112111
github.com/google/go-github/v55 v55.0.0 // indirect
113112
github.com/google/go-querystring v1.1.0 // indirect
114113
github.com/google/gofuzz v1.2.0 // indirect
@@ -119,14 +118,13 @@ require (
119118
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
120119
github.com/hashicorp/hcl v1.0.1-vault-5 // indirect
121120
github.com/imdario/mergo v0.3.16 // indirect
122-
github.com/in-toto/attestation v1.1.0 // indirect
123121
github.com/inconshreveable/mousetrap v1.1.0 // indirect
124122
github.com/jedisct1/go-minisign v0.0.0-20230811132847-661be99b8267 // indirect
125123
github.com/jmespath/go-jmespath v0.4.0 // indirect
126124
github.com/josharian/intern v1.0.0 // indirect
127125
github.com/json-iterator/go v1.1.12 // indirect
128126
github.com/klauspost/compress v1.17.4 // indirect
129-
github.com/letsencrypt/boulder v0.0.0-20240620165639-de9c06129bec // indirect
127+
github.com/letsencrypt/boulder v0.0.0-20231026200631-000cd05d5491 // indirect
130128
github.com/magiconair/properties v1.8.7 // indirect
131129
github.com/mailru/easyjson v0.7.7 // indirect
132130
github.com/miekg/pkcs11 v1.1.1 // indirect
@@ -151,7 +149,6 @@ require (
151149
github.com/segmentio/ksuid v1.0.4 // indirect
152150
github.com/shibumi/go-pathspec v1.3.0 // indirect
153151
github.com/sigstore/fulcio v1.4.5 // indirect
154-
github.com/sigstore/protobuf-specs v0.3.2 // indirect
155152
github.com/sigstore/timestamp-authority v1.2.2 // indirect
156153
github.com/sirupsen/logrus v1.9.3 // indirect
157154
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 // indirect
@@ -165,7 +162,6 @@ require (
165162
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
166163
github.com/thales-e-security/pool v0.0.2 // indirect
167164
github.com/theupdateframework/go-tuf v0.7.0 // indirect
168-
github.com/theupdateframework/go-tuf/v2 v2.0.0 // indirect
169165
github.com/titanous/rocacheck v0.0.0-20171023193734-afe73141d399 // indirect
170166
github.com/tjfoc/gmsm v1.4.1 // indirect
171167
github.com/transparency-dev/merkle v0.0.2 // indirect
@@ -174,28 +170,28 @@ require (
174170
github.com/zeebo/errs v1.3.0 // indirect
175171
go.mongodb.org/mongo-driver v1.14.0 // indirect
176172
go.opencensus.io v0.24.0 // indirect
177-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 // indirect
178-
go.opentelemetry.io/otel v1.27.0 // indirect
179-
go.opentelemetry.io/otel/metric v1.27.0 // indirect
180-
go.opentelemetry.io/otel/trace v1.27.0 // indirect
173+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
174+
go.opentelemetry.io/otel v1.24.0 // indirect
175+
go.opentelemetry.io/otel/metric v1.24.0 // indirect
176+
go.opentelemetry.io/otel/trace v1.24.0 // indirect
181177
go.step.sm/crypto v0.44.2 // indirect
182178
go.uber.org/multierr v1.11.0 // indirect
183179
go.uber.org/zap v1.27.0 // indirect
184-
golang.org/x/crypto v0.26.0 // indirect
185-
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 // indirect
186-
golang.org/x/mod v0.20.0 // indirect
187-
golang.org/x/net v0.27.0 // indirect
188-
golang.org/x/sync v0.8.0 // indirect
189-
golang.org/x/sys v0.23.0 // indirect
190-
golang.org/x/term v0.23.0 // indirect
191-
golang.org/x/text v0.17.0 // indirect
180+
golang.org/x/crypto v0.22.0 // indirect
181+
golang.org/x/exp v0.0.0-20231108232855-2478ac86f678 // indirect
182+
golang.org/x/mod v0.16.0 // indirect
183+
golang.org/x/net v0.23.0 // indirect
184+
golang.org/x/sync v0.7.0 // indirect
185+
golang.org/x/sys v0.20.0 // indirect
186+
golang.org/x/term v0.19.0 // indirect
187+
golang.org/x/text v0.14.0 // indirect
192188
golang.org/x/time v0.5.0 // indirect
193-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
189+
golang.org/x/tools v0.19.0 // indirect
194190
google.golang.org/api v0.172.0 // indirect
195-
google.golang.org/genproto/googleapis/api v0.0.0-20240520151616-dc85e6b867a5 // indirect
196-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240520151616-dc85e6b867a5 // indirect
197-
google.golang.org/grpc v1.64.1 // indirect
198-
google.golang.org/protobuf v1.34.2 // indirect
191+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 // indirect
192+
google.golang.org/grpc v1.62.1 // indirect
193+
google.golang.org/protobuf v1.33.0 // indirect
194+
gopkg.in/go-jose/go-jose.v2 v2.6.3 // indirect
199195
gopkg.in/inf.v0 v0.9.1 // indirect
200196
gopkg.in/ini.v1 v1.67.0 // indirect
201197
gopkg.in/yaml.v2 v2.4.0 // indirect

0 commit comments

Comments
 (0)