Skip to content

Commit acc4728

Browse files
BST-2963: scan id label (#7)
* add scanner_id and scan_label options * release version 4.0.4
1 parent 2425306 commit acc4728

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## Unreleased - [Github](https://github.com/boostsecurityio/boostsec-scanner-github/compare/v4.0.3..HEAD)
5+
## Unreleased - [Github](https://github.com/boostsecurityio/boostsec-scanner-github/compare/v4.0.4..HEAD)
6+
7+
## v4.0.4 - 2022-10-24 - [Github](https://github.com/boostsecurityio/boostsec-scanner-github/compare/v4.0.3...v4.0.4)
8+
9+
- Add scanner\_id and scan\_label options
610

711
## v4.0.3 - 2022-10-10 - [Github](https://github.com/boostsecurityio/boostsec-scanner-github/compare/v4.0.2...v4.0.3)
812

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ additional files that are not tracked in git.
8383
The relative path towards a module within the [Scanner Registry](https://github.com/boostsecurityio/scanner-registry).
8484
To streamline the configuration, both the _scanners_ prefix and _module.yaml_ suffix may be omitted.
8585

86+
### `scanner_id` (Optional, string)
87+
88+
Optional identifier to uniquely identify the scanner
89+
90+
### `scan_label` (Optional, string)
91+
92+
Optional identifier to identify a a monorepo component
93+
8694
### `scan_timeout` (Optional, number)
8795

8896
The optional timeout after which the Github check will be marked as failed. This defaults to 120 seconds.

action.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ inputs:
3333
registry_module:
3434
description: "Module within the scanner registry to execute"
3535
required: true
36+
scanner_id:
37+
description: "Optional identifier to uniquely identify the scanner"
38+
default: ""
39+
scan_label:
40+
description: "Optional identifier to identify a a monorepo component"
41+
default: ""
3642
scan_timeout:
3743
description: "Maximum amount of time a diff scan should complete in"
3844
default: ""
@@ -52,4 +58,6 @@ runs:
5258
BOOST_LOG_LEVEL: ${{ inputs.log_level }}
5359
BOOST_DIFF_SCAN_TIMEOUT: ${{ inputs.scan_timeout }}
5460
BOOST_PRE_SCAN: ${{ inputs.pre_scan_cmd }}
61+
BOOST_SCAN_LABEL: ${{ inputs.scan_label }}
62+
BOOST_SCANNER_ID: ${{ inputs.scanner_id }}
5563
BOOST_SCANNER_REGISTRY_MODULE: ${{ inputs.registry_module }}

0 commit comments

Comments
 (0)