mirror of
https://github.com/cloudflare/cloudflare-docs.git
synced 2026-01-11 20:06:58 +00:00
[semgrep] Fix multiline commit message, false positive on ipv6 addresses and the name Mary (#27015)
This commit is contained in:
parent
32bac1c906
commit
fa92a0d435
2 changed files with 4 additions and 3 deletions
2
.github/workflows/semgrep.yml
vendored
2
.github/workflows/semgrep.yml
vendored
|
|
@ -31,7 +31,7 @@ jobs:
|
|||
- name: Configure
|
||||
run: |
|
||||
git config --global --add safe.directory $PWD
|
||||
echo "COMMIT_MESSAGE='$(git log --format=%B -n 1 ${{ github.event.pull_request.head.sha }} | sed "s/\"/'/g")'" | tee /dev/stderr >> "$GITHUB_ENV"
|
||||
echo "COMMIT_MESSAGE='$(git log --format=%B -n 1 ${{ github.event.pull_request.head.sha }} | sed "s/\"/'/g" | tr "\n" " ") '" | tee /dev/stderr >> "$GITHUB_ENV"
|
||||
echo "(if the last commit message contains '[skip style guide checks]' Semgrep style guide rule checks will be skipped)"
|
||||
|
||||
# Semgrep CI to run on Schedule (Cron) or Manual Dispatch
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ rules:
|
|||
- "/.semgrep/**"
|
||||
- "/.github/**"
|
||||
patterns:
|
||||
- pattern-regex: "Jan|Feb|Mar[^k]|Apr|May[^b]|Jun[^k]|Jul|Aug|Sep|Nov|Dec[^i]"
|
||||
- pattern-regex: "Jan|Feb|Mar[ c]|Apr|May[ \\.]|Jun[ e]|Jul|Aug|Sep|Nov|Dec[ e]"
|
||||
|
||||
- id: style-guide-potential-date-year
|
||||
languages: [generic]
|
||||
|
|
@ -58,4 +58,5 @@ rules:
|
|||
- "/.github/**"
|
||||
patterns:
|
||||
# ignore 2xxx- with a - at the end (double-escape because in string and not a range operator!)
|
||||
- pattern-regex: "20[0-9][0-9][^\\-]"
|
||||
# ignore 200!:: as part of IPv6 address
|
||||
- pattern-regex: "20[0-9][0-9][^\\-:]"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue