8000 Setup log level for Action Assertion (#13) · nginxinc/compliance-rules@45577a5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 45577a5

Browse files
authored
Setup log level for Action Assertion (#13)
* Setup log level Signed-off-by: Jakub Jarosz <j.jarosz@f5.com> * add log level Signed-off-by: Jakub Jarosz <j.jarosz@f5.com> * fix typa Signed-off-by: Jakub Jarosz <j.jarosz@f5.com> --------- Signed-off-by: Jakub Jarosz <j.jarosz@f5.com>
1 parent 0bd61ed commit 45577a5

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

.github/actions/assertion/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ inputs:
4141
finished-on:
4242
description: 'Pipeline end time'
4343
required: true
44+
log-level:
45+
description: 'Setup log level for action'
46+
required: false
4447
outputs:
4548
assertion-document-path:
4649
description: "Generated assertion document"
9.5 8000 9 MB
Binary file not shown.

.github/actions/assertion/invoke_binary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const childProcess = require('child_process')
22
const os = require('os')
33
const process = require('process')
44

5-
const VERSION = 'eedf8cf'
5+
const VERSION = 'eb7ca34'
66

77
function chooseBinary() {
88
const platform = os.platform()

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ The full list of required variables:
143143
- `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+
- `log-level` - setup log level for assertion action. Default value: `INFO`. Allowed values `DEBUG`, `WARN`, `ERROR`.
146147

147148
After successful run the action produces an assertion document in JSON format. The document needs to be signed and stored for further processing.
148149

@@ -165,6 +166,7 @@ Example:
165166
artifactory-repo: 'f5-nginx-go-local-approved-dependency'
166167
assertion-doc-file: assertion_ptdcli_${{ github.ref_name }}.json
167168
build-content-path: ${{ steps.godeps.outputs.goversionm }}
169+
log-level: 'DEBUG'
168170
```
169171

170172
#### GitHub Action Sign - Configuration

0 commit comments

Comments
 (0)
0