@@ -121,7 +121,7 @@ uses: nginxinc/compliance-rules/.github/workflows/codeql.yml@<git_tag>
121121
122122# ## Data flow
123123
124- 
124+ 
125125
126126# ### GitHub Action Assertion - Configuration
127127
@@ -137,15 +137,17 @@ The full list of required variables:
137137- ` builder-id` - github.com
138138- ` builder-version`
139139- ` invocation-id` - unique id for the build pipeline
140- - ` artifactory-user`
141- - ` artifactory-api-token`
142- - ` artifactory-url`
143- - ` artifactory-repo` - Artifactory repository used for pulling build dependencies, for example ' f5-nginx-go-local-approved-dependency'
140+ - ` artifactory-user` - `ARTIFACTORY_USER` stored in github org secrets (`secrets.ARTIFACTORY_USER`)
141+ - ` artifactory-api-token` - `ARTIFACTORY_TOKEN` stored in github org secrets (`secrets.ARTIFACTORY_TOKEN`)
142+ - ` artifactory-url` - `ARTIFACTORY_URL` stored in github org secrets (`secrets.ARTIFACTORY_URL`)
143+ - ` artifactory-repo` - Artifactory repository used for pulling build dependencies - for example ` f5-nginx-go-local-approved-dependency`
144144- ` assertion-doc-file` - file generated by the action `assertion_${{ unique identifier }}.json`
145145- ` build-content-path` - file containing output from `go version -m` command executed against the binary
146+ - ` started-on` - start time
147+ - ` finished-on` - end time
146148- `log-level` - setup log level for assertion action. Default value : ` INFO` . Allowed values `DEBUG`, `WARN`, `ERROR`.
147149
148- After successful run the action produces an assertion document in JSON format. The document needs to be signed and stored for further processing .
150+ After successful run the action produces an assertion document in JSON format. The Sign Action takes the document, signes it, and stores in GitHub storage .
149151
150152Example :
151153
@@ -154,8 +156,8 @@ Example:
154156 id: assertiondoc
155157 uses: nginxinc/compliance-rules/.github/actions/assertion@<git-tag>
156158 with:
157- artifact-name: ptdcli_ ${{ github.ref_name }}
158- artifact-digest: 'test- digest'
159+ artifact-name: ${{ github.event.repository.name }}_${{ github.sha }}_${{ github.run_number }}_${{ matrix.gateway.os }}_${{ matrix.gateway.arch }}
160+ artifact-digest: ${{ matrix.gateway. digest }}
159161 build-type: 'github'
160162 builder-id: 'github.com'
161163 builder-version: '0.1.0-xyz'
@@ -164,14 +166,16 @@ Example:
164166 artifactory-api-token: ${{ secrets.ARTIFACTORY_TOKEN }}
165167 artifactory-url: ${{ secrets.ARTIFACTORY_URL }}
166168 artifactory-repo: 'f5-nginx-go-local-approved-dependency'
167- assertion-doc-file: assertion_ptdcli_ ${{ github.ref_name }}.json
169+ assertion-doc-file: assertion_ ${{ github.event.repository.name }}_${{ github.sha }}_${{ github.run_id }}_${{ github.run_number }}_${{ matrix.gateway.os }}_${{ matrix.gateway.arch }}.json
168170 build-content-path: ${{ steps.godeps.outputs.goversionm }}
171+ started-on: ${{ github.event.head_commit.timestamp || github.event.created_at }}
172+ finished-on: ${{ github.event.head_commit.timestamp || github.event.created_at }}
169173 log-level: 'DEBUG'
170174` ` `
171175
172176# ### GitHub Action Sign - Configuration
173177
174- The `Sign` action takes a path to the generated assertion document, signs the document and stores it in GitHub.
178+ The `Sign` action takes a path to the generated assertion document, signs it, and stores signed doc in GitHub.
175179
176180The list of required variables :
177181
@@ -186,3 +190,4 @@ Example:
186190 with:
187191 assertion-doc: ${{ steps.assertiondoc.outputs.assertion-document-path }}
188192` ` `
193+
0 commit comments