Skip to content

Commit

Permalink
Make sure the to release commit is signed
Browse files Browse the repository at this point in the history
  • Loading branch information
rnijveld committed Mar 29, 2024
1 parent 2107bd9 commit becf25d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/packaging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ jobs:
toolchain: "stable"
components: "llvm-tools"

- name: Check that the release commit is verified
run: |
commit_url="${{ github.api_url }}/repos/${{ github.repository }}/commits/${{ github.sha }}"
json_accept_header="Accept: application/vnd.github+json"
auth_bearer_header="Authorization: Bearer ${{ github.token }}"
test "$(curl -sf -H "$json_accept_header" -H "$auth_bearer_header" "$commit_url" | jq .verification.verified)" == "true"
- name: Read the version from the manifest file
run: echo "release_version=$(cargo read-manifest --manifest-path ntpd/Cargo.toml | jq -r .version)" >> "$GITHUB_ENV"

Expand Down

0 comments on commit becf25d

Please sign in to comment.