This repository was archived by the owner on May 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 1414 type : boolean
1515 required : true
1616 generate_provenance :
17- description : ' Whether or not to generate provenance for this manual publish.'
18- type : boolean
19- required : true
17+ description : ' Whether or not to generate provenance for this manual publish. Default behavior: generate only on main branch.'
18+ type : choice
19+ options :
20+ - Default
21+ - Generate
22+ - Do not generate
2023
2124jobs :
2225 build :
6265 id-token : write
6366 contents : write
6467 uses :
slsa-framework/slsa-github-generator/.github/workflows/[email protected] 65- if : ${{ inputs.generate_provenance && inputs.pkg_name == 'LaunchDarkly.ServerSdk' }}
68+ if : |
69+ (inputs.generate_provenance == 'Generate' || (inputs.generate_provenance == 'Default' && github.ref_name == 'main')) &&
70+ inputs.pkg_name == 'LaunchDarkly.ServerSdk'
6671 with :
6772 base64-subjects : " ${{ needs.build.outputs.server-sdk-hashes }}"
6873 upload-assets : true
7681 id-token : write
7782 contents : write
7883 uses :
slsa-framework/slsa-github-generator/.github/workflows/[email protected] 79- if : ${{ inputs.generate_provenance && inputs.pkg_name == 'LaunchDarkly.ServerSdk.Telemetry' }}
84+ if : |
85+ (inputs.generate_provenance == 'Generate' || (inputs.generate_provenance == 'Default' && github.ref_name == 'main')) &&
86+ inputs.pkg_name == 'LaunchDarkly.ServerSdk.Telemetry'
8087 with :
8188 base64-subjects : " ${{ needs.build.outputs.telemetry-hashes }}"
8289 upload-assets : true
You can’t perform that action at this time.
0 commit comments