mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
adding commit linter
This commit is contained in:
parent
05df378dce
commit
57dd26baa9
1 changed files with 17 additions and 0 deletions
17
.github/workflows/badstrings.yml
vendored
Normal file
17
.github/workflows/badstrings.yml
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
name: badstrings
|
||||||
|
on: [pull_request, push]
|
||||||
|
jobs:
|
||||||
|
badstrings:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: scanning commit message for bad strings
|
||||||
|
run: |
|
||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
IFS=$'\n\t'
|
||||||
|
message="${{ github.event.head_commit.message }}"
|
||||||
|
|
||||||
|
strings=($(curl -s https://raw.githubusercontent.com/someara/badstrings/main/strings.txt))
|
||||||
|
for i in ${strings[@]} ; do
|
||||||
|
echo "${message}" | grep -v "$i" &>/dev/null;
|
||||||
|
done
|
Loading…
Add table
Reference in a new issue