Skip to content

Commit fdfe8c2

Browse files
authored
Project Sierra (#1)
* feat: SIGINT-2132 project sierra initial version * feat: SIGINT-2132 detect varible fix * feat: SIGINT-2132 handle info warn messages * SIGINT-2132 refactor * SIGINT-2132 refactor * SIGINT-2132 update README.md * fix: SIGINT-2132 address review comments * fix: SIGINT-2132 update check-dist.yml * fix: SIGINT-2132 update check-dist.yml * fix: SIGINT-2132 update check-dist.yml
1 parent a033ad0 commit fdfe8c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+5103
-6307
lines changed

.blackduck-ci-templates.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"modules": [
33
{
4-
"at": "./synopsys-task",
4+
"at": "./blackduck-security-task",
55
"templates": ["dependencies"]
66
}
77
]

.github/workflows/check-coverage.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
node-version: 20.x
2626

2727
- name: Install dependencies
28-
run: cd synopsys-task && npm ci
28+
run: cd blackduck-security-task && npm ci
2929

3030
- name: Unit Test Cases
3131
id: unit-test-cases
3232
shell: bash
3333
run: |
34-
cd synopsys-task && npm run test
34+
cd blackduck-security-task && npm run test
3535
coverageFile="coverage/index.html"
3636
3737
### fetching line coverage from coverage/index.html file

.github/workflows/check-dist.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v4
2727

28-
- name: Set Node.js 20.x
28+
- name: Set Node.js 16.x
2929
uses: actions/setup-node@v4
3030
with:
31-
node-version: 20.x
31+
node-version: 16.x
3232

3333
- name: Install dependencies
34-
run: cd synopsys-task && npm ci
34+
run: cd blackduck-security-task && npm ci
3535

3636
- name: Rebuild the dist/ directory
37-
run: cd synopsys-task && npm run build && npm run package
37+
run: cd blackduck-security-task && npm run build && npm run package
3838

3939
- name: Compare the expected and actual dist/ directories
4040
run: |
41-
cd synopsys-task
41+
cd blackduck-security-task
4242
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
4343
echo "Detected uncommitted changes after build. See status below:"
4444
git diff
@@ -51,4 +51,4 @@ jobs:
5151
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
5252
with:
5353
name: dist
54-
path: synopsys-task/dist/
54+
path: blackduck-security-task/dist/

.gitignore

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/.idea/
2-
/synopsys-task/node_modules/
3-
/synopsys-task/lib/
4-
/synopsys-task/TEMP
5-
/synopsys-task/.bridge/
6-
/synopsys-task/.taskkey
7-
/synopsys-task/coverity_input.json
8-
/synopsys-task/bd_input.json
9-
/synopsys-task/polaris_input.json
10-
/synopsys-task/srm_input.json
11-
/synopsys-task/.nyc_output/
12-
/synopsys-task/coverage//
2+
/blackduck-security-task/node_modules/
3+
/blackduck-security-task/lib/
4+
/blackduck-security-task/TEMP
5+
/blackduck-security-task/.bridge/
6+
/blackduck-security-task/.taskkey
7+
/blackduck-security-task/coverity_input.json
8+
/blackduck-security-task/bd_input.json
9+
/blackduck-security-task/polaris_input.json
10+
/blackduck-security-task/srm_input.json
11+
/blackduck-security-task/.nyc_output/
12+
/blackduck-security-task/coverage//
1313
.DS_Store
14-
*.synopsys-extension-*.vsix
15-
/synopsys-task/coverage/
16-
/synopsys-task/test/unit/synopsys-task/synopsys-bridge.zip
14+
*.blackduck-security-scan-*.vsix
15+
/blackduck-security-task/coverage/
16+
/blackduck-security-task/test/unit/blackduck-security-task/bridge-cli.zip

.gitlab-ci-template.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
paths:
3333
- .m2/
3434
script:
35-
- cd synopsys-task
35+
- cd blackduck-task
3636
- npm ci
3737
- npm run format && npm run lint && npm run build && npm run package
3838

3939
.unit_test_and_coverage:
4040
image: gcr.io/snps-polaris-ops-prod/ember_cli:3.28.5-node_16.14
4141
script:
42-
- cd synopsys-task
42+
- cd blackduck-security-task
4343
- npm ci
4444
- npm test
4545
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# Synopsys Security Scan for Azure DevOps
1+
# Black Duck Security Scan for Azure DevOps
22

3-
Synopsys Security Scan Extension for Azure DevOps enables you to configure your Azure pipeline to run Synopsys security testing and take action on the results.
4-
Synopsys Security Scan leverages Synopsys Bridge, allowing you to run tests for several Synopsys products from the command line.
3+
Black Duck Security Scan Extension for Azure DevOps enables you to configure your Azure pipeline to run Black Duck security testing and take action on the results.
4+
Black Duck Security Scan leverages Bridge CLI, allowing you to run tests for several Black Duck products from the command line.
55

6-
To use Synopsys Security Scan, please follow the steps below:
6+
To use Black Duck Security Scan, please follow the steps below:
77

88
1. Configure Azure DevOps as described in the [Azure Prerequisites](https://sig-product-docs.synopsys.com/bundle/bridge/page/documentation/c_azure-prerequisites.html) page.
9-
2. Install and configure Synopsys Security Scan for the Synopsys product you are using. <br/>
9+
2. Install and configure Black Duck Security Scan for the Black Duck product you are using. <br/>
1010
[Polaris](https://sig-product-docs.synopsys.com/bundle/bridge/page/documentation/c_azure-with-polaris.html) <br/>
1111
[Black Duck](https://sig-product-docs.synopsys.com/bundle/bridge/page/documentation/c_azure-with-blackduck.html) <br/>
1212
[Coverity](https://sig-product-docs.synopsys.com/bundle/bridge/page/documentation/c_azure-with-coverity.html) <br/>
1313
3. For additional configuration options, visit the [Additional Azure Configuration](https://sig-product-docs.synopsys.com/bundle/bridge/page/documentation/c_additional-azure-parameters.html) page.
1414

15-
As an alternative to Synopsys Action, you also have the option to use Synopsys Bridge CLI. <br/>
16-
Detailed documentation for Synopsys Bridge CLI can be found [here](https://sig-product-docs.synopsys.com/bundle/bridge/page/documentation/c_overview.html).
15+
As an alternative to Black Duck Security Scan, you also have the option to use Bridge CLI. <br/>
16+
Detailed documentation for Bridge CLI can be found [here](https://sig-product-docs.synopsys.com/bundle/bridge/page/documentation/c_overview.html).
File renamed without changes.
File renamed without changes.

synopsys-task/dist/index.js blackduck-security-task/dist/index.js

+3,023-3,069
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blackduck-security-task/dist/index.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
{
2-
"messages": {
3-
"TOOL_LIB_CachingTool": "Caching tool: %s %s %s",
4-
"_TOOL_LIB_CachingTool.comment": "This informational log message indicates that a tool, that was just downloaded, is being copied into the cache directory. %s %s %s represent the tool name, version information, and processor architecture.",
5-
"TOOL_LIB_Downloading": "Downloading: %s",
6-
"_TOOL_LIB_Downloading.comment": "This information log message indicates that a file is being downloaded. %s represents the URL being downloaded.",
7-
"TOOL_LIB_ExtractingArchive": "Extracting archive",
8-
"_TOOL_LIB_ExtractingArchive.comment": "This informational log message indicates that an archive file is being extracted. For example, a .zip file, .7z file, or .tar.gz file.",
9-
"TOOL_LIB_FoundInCache": "Found tool in cache: %s %s %s",
10-
"_TOOL_LIB_FoundInCache.comment": "This informational log message indicates that the request tool is already cached, and does not need to be downloaded again. %s %s %s represent the tool name, version information, and processor architecture.",
11-
"TOOL_LIB_PrependPath": "Prepending PATH environment variable with directory: %s",
12-
"_TOOL_LIB_PrependPath.comment": "This informational log message indicates that a directory is being prepended to the front of the PATH environment variable. The directories specified by the PATH environment variable are used to resolve the location of command line tools."
13-
}
1+
{
2+
"messages": {
3+
"TOOL_LIB_CachingTool": "Caching tool: %s %s %s",
4+
"_TOOL_LIB_CachingTool.comment": "This informational log message indicates that a tool, that was just downloaded, is being copied into the cache directory. %s %s %s represent the tool name, version information, and processor architecture.",
5+
"TOOL_LIB_Downloading": "Downloading: %s",
6+
"_TOOL_LIB_Downloading.comment": "This information log message indicates that a file is being downloaded. %s represents the URL being downloaded.",
7+
"TOOL_LIB_ExtractingArchive": "Extracting archive",
8+
"_TOOL_LIB_ExtractingArchive.comment": "This informational log message indicates that an archive file is being extracted. For example, a .zip file, .7z file, or .tar.gz file.",
9+
"TOOL_LIB_FoundInCache": "Found tool in cache: %s %s %s",
10+
"_TOOL_LIB_FoundInCache.comment": "This informational log message indicates that the request tool is already cached, and does not need to be downloaded again. %s %s %s represent the tool name, version information, and processor architecture.",
11+
"TOOL_LIB_PrependPath": "Prepending PATH environment variable with directory: %s",
12+
"_TOOL_LIB_PrependPath.comment": "This informational log message indicates that a directory is being prepended to the front of the PATH environment variable. The directories specified by the PATH environment variable are used to resolve the location of command line tools."
13+
}
1414
}
File renamed without changes.

synopsys-task/package-lock.json blackduck-security-task/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

synopsys-task/package.json blackduck-security-task/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "synopsys-task",
2+
"name": "blackduck-security-scan",
33
"version": "1.10.0",
44
"main": "lib/main.js",
55
"scripts": {

0 commit comments

Comments
 (0)