forked from securesign/fulcio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate github to ci provider flow (sigstore#1738)
Contribute towards sigstore#1111 Moves GitHub configuration to the new ci-provider configuration. No changes to issued certificates. Signed-off-by: Javan Lacerda <[email protected]>
- Loading branch information
1 parent
2561297
commit f040693
Showing
2 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
define: &github-type "github-workflow" | ||
|
||
oidc-issuers: | ||
https://accounts.google.com: | ||
issuer-url: https://accounts.google.com | ||
|
@@ -90,7 +92,8 @@ oidc-issuers: | |
https://token.actions.githubusercontent.com: | ||
issuer-url: https://token.actions.githubusercontent.com | ||
client-id: sigstore | ||
type: github-workflow | ||
type: ci-provider | ||
ci-provider: *github-type | ||
contact: [email protected] | ||
description: "GitHub Actions OIDC auth" | ||
meta-issuers: | ||
|
@@ -108,5 +111,30 @@ meta-issuers: | |
type: kubernetes | ||
https://token.actions.githubusercontent.com/*: | ||
client-id: sigstore | ||
type: github-workflow | ||
|
||
type: ci-provider | ||
ci-provider: *github-type | ||
ci-issuer-metadata: | ||
*github-type: | ||
default-template-values: | ||
url: "https://github.com" | ||
extension-templates: | ||
github-workflow-trigger: "event_name" | ||
github-workflow-sha: "sha" | ||
github-workflow-name: "workflow" | ||
github-workflow-repository: "repository" | ||
github-workflow-ref: "ref" | ||
build-signer-uri: "{{ .url }}/{{ .job_workflow_ref }}" | ||
build-signer-digest: "job_workflow_sha" | ||
runner-environment: "runner_environment" | ||
source-repository-uri: "{{ .url }}/{{ .repository }}" | ||
source-repository-digest: "sha" | ||
source-repository-ref: "ref" | ||
source-repository-identifier: "repository_id" | ||
source-repository-owner-uri: "{{ .url }}/{{ .repository_owner }}" | ||
source-repository-owner-identifier: "repository_owner_id" | ||
build-config-uri: "{{ .url }}/{{ .workflow_ref }}" | ||
build-config-digest: "workflow_sha" | ||
build-trigger: "event_name" | ||
run-invocation-uri: "{{ .url }}/{{ .repository }}/actions/runs/{{ .run_id }}/attempts/{{ .run_attempt }}" | ||
source-repository-visibility-at-signing: "repository_visibility" | ||
subject-alternative-name-template: "{{ .url }}/{{ .job_workflow_ref }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters