Skip to content

Commit 49cfb5a

Browse files
committed
update gitallowed for secret scanning
1 parent cdebc39 commit 49cfb5a

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

.gitallowed

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
1-
./pom.xml
2-
./src/test
3-
./.github/workflows
4-
./.tool-versions
5-
./nhsd-rules-deny.txt
1+
# Allow GitHub workflow secrets and tokens
2+
token: ?"?\$\{\{\s*secrets\.GITHUB_TOKEN\s*\}\}"?
3+
github-token: ?"?\$\{\{\s*secrets\.GITHUB_TOKEN\s*\}\}"?
4+
token: ?"?\$\{\{\s*secrets\.DEPENDABOT_TOKEN\s*\}\}"?
5+
id-token: write
6+
--token=\$\{\{\s*steps\.generate-token\.outputs\.token\s*\}\}
7+
--token=\$GITHUB-TOKEN
8+
9+
# Allow CIDR blocks in CloudFormation templates and related files
10+
CidrBlock: "10\.\d{1,3}\.\d{1,3}\.\d{1,3}/\d{1,2}"
11+
DestinationCidrBlock: "0\.0\.0\.0/0"
12+
13+
# Java corretto is not a secret
14+
.*java corretto.*
15+
16+
# Allow standard code in JSON files for FHIR compliance testing
17+
"code": "1\.2\.840\.10065\.1\.12\.1\.1"
18+
19+
# Allow IP in X-Forwarded-For header in test files
20+
.*\"X-Forwarded-For\": \"86\.5\.218\.71\".*
21+
22+
# Allow version for AspectJ in pom.xml
23+
<aspectj\.version>1\.9\.22\.1</aspectj\.version>
24+
25+
# General ones
26+
.*\.gitallowed.*
27+
.*nhsd-rules-deny.txt.*
28+
.*\.venv.*
29+
.*node_modules.*

0 commit comments

Comments
 (0)