|
7 | 7 | description: 'Agent version' |
8 | 8 | type: string |
9 | 9 | required: true |
10 | | - artifactId: |
11 | | - description: 'Artifact ID' |
| 10 | + runId: |
| 11 | + description: 'Run ID of the workflow that built the artifacts' |
12 | 12 | type: string |
13 | 13 | required: false |
| 14 | + signAssertion: |
| 15 | + description: 'Sign and store the assertion document' |
| 16 | + type: boolean |
| 17 | + required: false |
| 18 | + default: false |
14 | 19 | workflow_call: |
15 | 20 | inputs: |
16 | 21 | packageVersion: |
17 | 22 | description: 'Agent version' |
18 | 23 | type: string |
19 | 24 | required: true |
| 25 | + runId: |
| 26 | + description: 'Run ID of the workflow that built the artifacts' |
| 27 | + type: string |
| 28 | + required: false |
| 29 | + signAssertion: |
| 30 | + description: 'Sign and store the assertion document' |
| 31 | + type: boolean |
| 32 | + required: false |
| 33 | + default: false |
20 | 34 | secrets: |
21 | 35 | ARTIFACTORY_USER: |
22 | 36 | required: true |
@@ -51,18 +65,11 @@ jobs: |
51 | 65 | cache: false |
52 | 66 |
|
53 | 67 | - name: Download nginx-agent binary artifacts |
54 | | - if: ${{ inputs.artifactId == '' }} |
55 | | - uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # 6.0.0 |
56 | | - with: |
57 | | - name: nginx-agent-binaries-${{ inputs.packageVersion }}-${{ matrix.osarch }} |
58 | | - path: binaries |
59 | | - |
60 | | - - name: Download nginx-agent binary artifact by ID |
61 | | - if: ${{ inputs.artifactId != '' }} |
| 68 | + if: ${{ inputs.runId != '' }} |
62 | 69 | uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # 6.0.0 |
63 | 70 | with: |
64 | | - artifact-ids: '${{ inputs.artifactId }}' |
65 | | - path: binaries |
| 71 | + github-token: ${{ github.token }} |
| 72 | + run-id: ${{ inputs.runId }} |
66 | 73 |
|
67 | 74 | - name: Gather build dependencies |
68 | 75 | id: godeps |
|
98 | 105 |
|
99 | 106 | - name: Sign and Store Assertion Document |
100 | 107 | id: sign |
| 108 | + if: ${{ inputs.signAssertion == true }} |
101 | 109 | uses: nginxinc/compliance-rules/.github/actions/sign@83e452166aaf0ad8f07caf91a4f1f903b3dea1e6 # v0.3.0 |
102 | 110 | with: |
103 | 111 | assertion-doc: ${{ steps.assertiondoc.outputs.assertion-document-path }} |
0 commit comments