Skip to content

Commit

Permalink
adding meta issuers
Browse files Browse the repository at this point in the history
Signed-off-by: Javan lacerda <javanlacerda@google.com>
  • Loading branch information
javanlacerda committed Jun 4, 2024
1 parent 61faaa2 commit d575f1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/poc/pkg/providers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ providers:
- "{{.url}}/{{.job_workflow_ref}}"
defaults:
url: https://github.com
meta-issuers:
- issuer-url: "https://token.actions.githubusercontent.com/*"
client-id: "sigstore"
type: "github-workflow"
gitlab:
extensions:
build-signer-digest: ci_config_sha
Expand Down
2 changes: 2 additions & 0 deletions pkg/poc/pkg/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ type Provider struct {
Uris []string
Defaults map[string]string
OIDCIssuers []OIDCIssuer `yaml:"oidc-issuers,omitempty"`
MetaIssuers []OIDCIssuer `yaml:"meta-issuers,omitempty"`
}

func ApplyTemplate(path string, data map[string]string, defaultData map[string]string) string {
Expand Down Expand Up @@ -184,6 +185,7 @@ func main() {
Extensions: finalExtensions,
Uris: finalUris,
OIDCIssuers: provider.OIDCIssuers,
MetaIssuers: provider.MetaIssuers,
}
finalObj.Providers[k] = provider
}
Expand Down

0 comments on commit d575f1b

Please sign in to comment.