This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: adding generate provenance toggle to manual publish workflow
- Loading branch information
1 parent
12fa042
commit 410a6d7
Showing
1 changed file
with
8 additions
and
6 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 |
---|---|---|
|
@@ -13,6 +13,10 @@ on: | |
description: 'Is this a dry run. If so no package will be published.' | ||
type: boolean | ||
required: true | ||
generate_provenance: | ||
description: 'Whether or not to generate provenance for this manual publish.' | ||
type: boolean | ||
required: true | ||
|
||
jobs: | ||
build: | ||
|
@@ -58,12 +62,11 @@ jobs: | |
id-token: write | ||
contents: write | ||
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected] | ||
if: ${{ inputs.pkg_name == 'LaunchDarkly.ServerSdk' }} | ||
if: ${{ inputs.generate_provenance && inputs.pkg_name == 'LaunchDarkly.ServerSdk' }} | ||
with: | ||
base64-subjects: "${{ needs.build.outputs.server-sdk-hashes }}" | ||
upload-assets: true | ||
upload-tag-name: ${{ input.tag_name }} | ||
provenance-name: ${{ format('LaunchDarkly.ServerSdk-{0}_provenance.intoto.jsonl', input.tag_name) }} | ||
provenance-name: ${{ 'LaunchDarkly.ServerSdk_provenance.intoto.jsonl' }} | ||
|
||
|
||
release-telemetry-server-provenance: | ||
|
@@ -73,9 +76,8 @@ jobs: | |
id-token: write | ||
contents: write | ||
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected] | ||
if: ${{ inputs.pkg_name == 'LaunchDarkly.ServerSdk.Telemetry' }} | ||
if: ${{ inputs.generate_provenance && inputs.pkg_name == 'LaunchDarkly.ServerSdk.Telemetry' }} | ||
with: | ||
base64-subjects: "${{ needs.build.outputs.telemetry-hashes }}" | ||
upload-assets: true | ||
upload-tag-name: ${{ input.tag_name }} | ||
provenance-name: ${{ format('LaunchDarkly.ServerSdk.Telemetry-{0}_provenance.intoto.jsonl', input.tag_name) }} | ||
provenance-name: ${{ 'LaunchDarkly.ServerSdk.Telemetry_provenance.intoto.jsonl' }} |