Bump google.golang.org/protobuf from 1.36.1 to 1.36.4 #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ensure Verified Commits | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
workflow_call: | |
jobs: | |
verify_commits: | |
name: Verify Commit Signatures | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check commit signatures | |
run: | | |
gh api \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/commits | \ | |
jq '[ | |
# Iterate over all commits | |
.[] | | |
# select maintainer commits | |
select( | |
.author.login == "JanMa" or | |
.author.login == "cipherboy" or | |
.author.login == "DanGhita" or | |
.author.login == "naphelps" or | |
.author.login == "DrDaveD" | |
) | | |
# select any unsigned commits | |
select(.commit.verification.verified == false) | |
] | | |
# check if there are unsigned commits | |
if (. | length) != 0 then | |
# return error | |
("Pr contains unsigned maintainer commits!\n" | halt_error(1)) | |
else | |
# return success | |
"All maintainer commits are signed" | |
end' | |
env: | |
GH_TOKEN: ${{ github.token }} |