Skip to content

Commit 31f100b

Browse files
BST-3993: add scan_path option for monorepos (#9)
* Add scan_path option for monorepos * update changelog
1 parent fc96d20 commit 31f100b

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
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.5..HEAD)
5+
## Unreleased - [Github](https://github.com/boostsecurityio/boostsec-scanner-github/compare/v4.0.6..HEAD)
6+
7+
## v4.0.6 - 2023-02-10 - [Github](https://github.com/boostsecurityio/boostsec-scanner-github/compare/v4.0.5...v4.0.6)
8+
9+
- Add scan\_path option
610

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

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,13 @@ Optional identifier to uniquely identify the scanner
8989

9090
### `scan_label` (Optional, string)
9191

92-
Optional identifier to identify a a monorepo component
92+
Optional identifier to identify a monorepo component
93+
94+
### `scan_path` (Optional, string)
95+
96+
Optional path within the git repository to execute scanners in.
97+
98+
When this parameter is specified, you must also provide a `scan_label` to identify the component.
9399

94100
### `scan_timeout` (Optional, number)
95101

action.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ inputs:
3939
scan_label:
4040
description: "Optional identifier to identify a a monorepo component"
4141
default: ""
42+
scan_path:
43+
description: "Optional relative path to scan"
44+
default: ""
4245
scan_timeout:
4346
description: "Maximum amount of time a diff scan should complete in"
4447
default: ""
@@ -59,5 +62,6 @@ runs:
5962
BOOST_DIFF_SCAN_TIMEOUT: ${{ inputs.scan_timeout }}
6063
BOOST_PRE_SCAN: ${{ inputs.pre_scan_cmd }}
6164
BOOST_SCAN_LABEL: ${{ inputs.scan_label }}
65+
BOOST_SCAN_PATH: ${{ inputs.scan_path }}
6266
BOOST_SCANNER_ID: ${{ inputs.scanner_id }}
6367
BOOST_SCANNER_REGISTRY_MODULE: ${{ inputs.registry_module }}

0 commit comments

Comments
 (0)