Skip to content

Commit 255e1af

Browse files
authored
[develop] Add bad URL suffix pull request check (#6575)
* Add bad URL suffix pull request check
1 parent 3119557 commit 255e1af

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
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)