Skip to content

Commit 23094c7

Browse files
committed
.github: add signed-off-by validation workflow pr-validation.yml
Add a run of reusable signed-off-by check to ensure submitted git commits have a a proper signed-off-by. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 5cf6f9c commit 23094c7

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Example workflow for automatic Signed-off-by validation
2+
# Place this file in your repository at: .github/workflows/pr-validation.yml
3+
4+
name: PR Validation
5+
6+
on:
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
pull_request_target:
10+
types: [opened, synchronize, reopened]
11+
workflow_dispatch:
12+
inputs:
13+
pr_number:
14+
description: 'Pull Request number to validate'
15+
required: true
16+
type: number
17+
18+
jobs:
19+
validate-commits:
20+
uses: ./.github/workflows/reusable-sob-validator.yml
21+
permissions:
22+
contents: read
23+
pull-requests: write
24+
issues: write
25+
with:
26+
config-path: '.github/label-descriptions.yml'
27+
sob-label: 'signed off by'
28+
pr-number: ${{ github.event_name == 'workflow_dispatch' && format('{0}', inputs.pr_number) || '' }}
29+
secrets: inherit

0 commit comments

Comments
 (0)