Skip to content

Commit 60a0b90

Browse files
committed
Add bad url suffix check
1 parent ddba857 commit 60a0b90

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/unsafe-patterns-checker.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,13 @@ jobs:
2828
with:
2929
diffDoesNotContainRegex: "rm -rf"
3030
skipLabels: skip-recursive-deletion-check
31+
32+
# Prevent bad URL suffix
33+
bad-url-suffix-check:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Check PR for Disallowed URL Suffixes
37+
uses: francesco-giordano/[email protected]
38+
with:
39+
diffDoesNotContainRegex: "amazonaws\\.com|amazonaws\\.com\\.cn|c2s\\.ic\\.gov|sc2s\\.sgov\\.gov"
40+
skipLabels: skip-bad-url-suffix-check

0 commit comments

Comments
 (0)