@@ -33,15 +33,14 @@ jobs:
3333 fetch-depth : 1
3434
3535 - name : REUSE Compliance Check
36- uses : fsfe/reuse-action@bb774aa972c2a89ff34781233d275075cbddf542 # v5 .0.0
36+ uses : fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6 .0.0
3737
3838 CheckSignedOffCommit :
3939 if : >
4040 github.event_name == 'push' &&
41- !startsWith(github.actor, 'dependabot') &&
42- github.event.pusher.name != 'web-flow' &&
43- github.event.pusher.name != 'github-actions[bot]' &&
44- github.event.pusher.name != 'github-merge-queue[bot]'
41+ !contains(github.actor, '[bot]') &&
42+ !contains(github.event.pusher.name, '[bot]') &&
43+ github.event.pusher.name != 'web-flow'
4544 runs-on : ubuntu-latest
4645 permissions :
4746 contents : read
8180 while read -r sha
8281 do
8382 [ -n "$sha" ] || continue
83+
84+ # Skip commits from bots
85+ committer_name=`git log --format=%cn -n 1 "$sha"`
86+ if echo "$committer_name" | grep -Fq '[bot]' || [ "$committer_name" = "web-flow" ]
87+ then
88+ echo "Skipping bot/web-flow commit $sha from $committer_name"
89+ continue
90+ fi
91+
8492 msg=`git log --format=%B -n 1 "$sha"`
8593
8694 if ! printf '%s' "$msg" | grep -Eqi '^[[:space:]]*Signed[- ]off[- ]by:'
@@ -136,6 +144,15 @@ jobs:
136144 while read -r sha
137145 do
138146 [ -n "$sha" ] || continue
147+
148+ # Skip commits from bots
149+ committer_name=`git log --format=%cn -n 1 "$sha"`
150+ if echo "$committer_name" | grep -Fq '[bot]' || [ "$committer_name" = "web-flow" ]
151+ then
152+ echo "Skipping bot/web-flow commit $sha from $committer_name"
153+ continue
154+ fi
155+
139156 msg=`git log --format=%B -n 1 "$sha"`
140157
141158 if ! printf '%s' "$msg" | grep -Eqi '^[[:space:]]*Signed[- ]off[- ]by:'
0 commit comments