Skip to content

Commit a8670bd

Browse files
authored
Change to jsonpath for tag processing (#11)
1 parent c380254 commit a8670bd

File tree

12 files changed

+5785
-1067
lines changed

12 files changed

+5785
-1067
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
# If you wish to specify custom queries, you can do so here or in a config file.
5050
# By default, queries listed here will override any specified in a config file.
5151
# Prefix the list here with "+" to use these queries and those in the config file.
52-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
52+
queries: +security-extended
5353

5454
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- uses: ./
2323
with:
2424
sarifFile: test-data/webgoat.sarif
25+
- run: grep -c '"owasp-top10-2021"' test-data/webgoat.sarif
2526
- name: Archive SARIF output
2627
uses: actions/upload-artifact@v3
2728
with:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
test-data/java-with-security-standard-tag.sarif
1+
test-data/webgoat-with-security-standard-tag.sarif
22

33
# Dependency directory
44
node_modules

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{
77
"label": "Remove output SARIF file",
88
"type": "shell",
9-
"command": "rm ${workspaceFolder}/test-data/java-with-security-standard-tag.sarif"
9+
"command": "rm ${workspaceFolder}/test-data/webgoat-with-security-standard-tag.sarif"
1010
},
1111
{
1212
"label": "Build & remove output SARIF file",

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ inputs:
3131
cweFile:
3232
required: false
3333
description: 'The CWE list XML file, defaults to OWASP Top 10 2021'
34+
cweIdXpath:
35+
required: false
36+
description: 'The XPath query that selects CWE ID numbers from the CWE list file'
3437
securityStandardTag:
3538
required: false
3639
description: 'The security standard tag to add to the SARIF file'

action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ inputs:
88
cweFile:
99
required: false
1010
description: 'The CWE list XML file, defaults to OWASP Top 10 2021'
11+
cweIdXpath:
12+
required: false
13+
description: 'The XPath query that selects CWE ID numbers from the CWE list file'
1114
securityStandardTag:
1215
required: false
13-
description: 'The security standard tag to add to the SARIF file'
14-
default: 'owasp-top10-2021'
16+
description: 'The security standard tag to add to the SARIF file, defaults to "owasp-top10-2021"'
1517
outputFile:
1618
required: false
1719
description: 'The output SARIF file path, defaults to the input SARIF file path'

0 commit comments

Comments
 (0)