Skip to content

Commit

Permalink
Add bad url suffix check (#2841)
Browse files Browse the repository at this point in the history
Add bad url suffix check
  • Loading branch information
hehe7318 authored Nov 27, 2024
1 parent ddba857 commit e3b2269
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/unsafe-patterns-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ jobs:
with:
diffDoesNotContainRegex: "rm -rf"
skipLabels: skip-recursive-deletion-check

# 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 e3b2269

Please sign in to comment.