Skip to content

Commit

Permalink
set is ci provider as false
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 10, 2024
1 parent 5fa4ac0 commit e17da00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/fulcio-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ data:
"IssuerURL": "https://token.actions.githubusercontent.com",
"ClientID": "sigstore",
"Type": "github-workflow",
"IsCiProvider": true
"IsCiProvider": false
}
},
"MetaIssuers": {
Expand All @@ -116,7 +116,7 @@ data:
"https://token.actions.githubusercontent.com/*": {
"ClientID": "sigstore",
"Type": "github-workflow",
"IsCiProvider": true
"IsCiProvider": false
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions federation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ func main() {
fulcioConfig.OIDCIssuers[cfg.URL] = fulcioCfg
}

// We have to start to set IsCiProvider as true as default
// after moving the ci providers to the config.yaml
conf := readYaml()
for providerType, provider := range conf.Providers {
for _, issuer := range provider.OIDCIssuers {
Expand All @@ -147,15 +149,15 @@ func main() {
ClientID: "sigstore",
Type: config.IssuerType(providerType),
IssuerClaim: issuer.IssuerClaim,
IsCiProvider: true,
IsCiProvider: issuer.IsCiProvider,
}
fulcioConfig.OIDCIssuers[fulcioCfg.IssuerURL] = fulcioCfg
}
for _, issuer := range provider.MetaIssuers {
fulcioMetaCfg := config.OIDCIssuer{
ClientID: "sigstore",
Type: config.IssuerType(providerType),
IsCiProvider: true,
IsCiProvider: issuer.IsCiProvider,
}
fulcioConfig.MetaIssuers[issuer.IssuerURL] = fulcioMetaCfg
}
Expand Down

0 comments on commit e17da00

Please sign in to comment.