Skip to content

Commit

Permalink
Add bad url suffix check
Browse files Browse the repository at this point in the history
  • Loading branch information
hehe7318 committed Nov 27, 2024
1 parent 2e8f9a8 commit ccfbbaa
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/unsafe_patterns_checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Unsafe Patterns Checker
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

jobs:
# Prevent bad URL suffix
bad-url-suffix-check:
runs-on: ubuntu-latest
steps:
- name: Check PR for Disallowed URL Suffixes
uses: francesco-giordano/[email protected]
with:
diffDoesNotContainRegex: "amazonaws\\.com|amazonaws\\.com\\.cn|c2s\\.ic\\.gov|sc2s\\.sgov\\.gov"
skipLabels: skip-bad-url-suffix-check

0 comments on commit ccfbbaa

Please sign in to comment.