Skip to content

Commit 51f4de8

Browse files
committed
CI: Don't run the local signature verification script on GitHub as it doesn't work there.
1 parent 1104370 commit 51f4de8

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/test-git-signatures.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,8 @@ jobs:
1717
with:
1818
fetch-depth: 0 # Need full history to compare with main
1919

20-
- name: Check commit signatures (local verification)
21-
id: git-signatures-check
22-
run: bash brev/test-git-signatures.bash origin/main
23-
24-
- name: Check commit signatures (GitHub API verification)
25-
id: github-api-check
26-
if: always() && !cancelled()
20+
- name: Check commit signatures
21+
id: github-api-signature-check
2722
uses: actions/github-script@v7
2823
with:
2924
script: |
@@ -108,7 +103,7 @@ jobs:
108103
}
109104
110105
- name: Comment on PR if check failed
111-
if: failure() && steps.github-api-check.outputs.unsigned_count != ''
106+
if: failure() && steps.github-api-signature-check.outputs.unsigned_count != ''
112107
uses: actions/github-script@v7
113108
with:
114109
script: |
@@ -126,8 +121,8 @@ jobs:
126121
}
127122
128123
const prNumber = pulls[0].number;
129-
const unsignedCount = '${{ steps.github-api-check.outputs.unsigned_count }}';
130-
const unsignedCommits = `${{ steps.github-api-check.outputs.unsigned_commits }}`;
124+
const unsignedCount = '${{ steps.github-api-signature-check.outputs.unsigned_count }}';
125+
const unsignedCommits = `${{ steps.github-api-signature-check.outputs.unsigned_commits }}`;
131126
const runUrl = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`;
132127
133128
const commentBody = `## ❌ Commit Signature Check Failed

0 commit comments

Comments
 (0)