Skip to content

Commit b32378d

Browse files
authored
Add bad url suffix check (#646)
Add bad url suffix check
1 parent 2e8f9a8 commit b32378d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: .github/workflows/unsafe_patterns_checker.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Unsafe Patterns Checker
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
5+
6+
jobs:
7+
# Prevent bad URL suffix
8+
bad-url-suffix-check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check PR for Disallowed URL Suffixes
12+
uses: francesco-giordano/[email protected]
13+
with:
14+
diffDoesNotContainRegex: "amazonaws\\.com|amazonaws\\.com\\.cn|c2s\\.ic\\.gov|sc2s\\.sgov\\.gov"
15+
skipLabels: skip-bad-url-suffix-check

0 commit comments

Comments
 (0)