11 pull-requests: read # for tim-actions/get-pr-commits to get list of commits from the PR
12 name: Signed-off-by (DCO)
15 - name: Get PR Commits
17 uses: tim-actions/get-pr-commits@master
19 token: ${{ secrets.GITHUB_TOKEN }}
21 - name: Check that all commits are signed-off
22 uses: tim-actions/dco@master
24 commits: ${{ steps.get-pr-commits.outputs.commits }}
32 - name: Check branch target
34 TARGET: ${{ github.event.pull_request.base.ref }}
37 [ "${TARGET}" = "master" ] && exit 0
39 echo "Invalid branch target: ${TARGET}"