Skip to content

Commit

Permalink
wip: test tag verification
Browse files Browse the repository at this point in the history
  • Loading branch information
soonum committed Oct 29, 2024
1 parent a13fa00 commit 4c9a49c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/verify_tagged_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,26 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout tfhe-rs
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
persist-credentials: 'false'
fetch-depth: 0

- name: Get tag SHA
run: |
git show-ref -s ${{ github.ref_name }}
echo "TAG_SHA=$(git show-ref -s ${{ github.ref_name }})" >> "${GITHUB_ENV}"
- name: Get commit details
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "SHAAAAA: ${{ github.sha }}"
echo "TAG SHA: ${{ env.TAG_SHA }}"
{
echo "COMMITTER_LOGIN=$(gh api repos/${{ github.repository }}/commits/${{ github.sha }} --jq '.committer.login')";
echo "VERIFICATION_STATUS=$(gh api repos/${{ github.repository }}/commits/${{ github.sha }} --jq '.commit.verification.verified')";
echo "VERIFICATION_STATUS=$(gh api repos/${{ github.repository }}/git/tags/${{ env.TAG_SHA }} --jq '.verification.verified')";
} >> "${GITHUB_ENV}"
# Check author of the tag membership
Expand All @@ -38,7 +51,8 @@ jobs:
id: actor_check
uses: morfien101/actions-authorized-user@4a3cfbf0bcb3cafe4a71710a278920c5d94bb38b
with:
username: ${{ github.actor }}
#username: ${{ github.actor }}
username: ${{ github.triggering_actor }}
org: ${{ github.repository_owner }}
team: ${{ secrets.RELEASE_TEAM }}
github_token: ${{ secrets.READ_ORG_TOKEN }}
Expand Down

0 comments on commit 4c9a49c

Please sign in to comment.