Skip to content

Commit 1e3cf08

Browse files
authored
Merge pull request #71 from fruechel-canva/main
Add exclusion patterns for curl-unecrypted-url
2 parents 6b4738c + 072ce07 commit 1e3cf08

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

generic/curl-unencrypted-url.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,13 @@ curl https://google.com > /dev/null
1313
curl http://localhost > /dev/null
1414

1515
# ok: curl-unencrypted-url
16-
curl http://127.0.0.1 > /dev/null
16+
curl http://127.0.0.1 > /dev/null
17+
18+
# ok: curl-unencrypted-url
19+
curl http://169.254.169.254 > /dev/null
20+
#
21+
# ok: curl-unencrypted-url
22+
curl http://[fd00:ec2::254] > /dev/null
23+
24+
# ok: curl-unencrypted-url
25+
curl http://metadata.google.internal > /dev/null

generic/curl-unencrypted-url.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ rules:
1919
- pattern: curl ... ftp://
2020
- pattern-not-inside: curl ... http://127.0.0.1
2121
- pattern-not-inside: curl ... http://localhost
22+
- pattern-not-inside: curl ... http://169.254.169.254
23+
- pattern-not-inside: curl ... http://[fd00:ec2::254]
24+
- pattern-not-inside: curl ... http://metadata.google.internal

0 commit comments

Comments
 (0)