|
| 1 | +--- |
1 | 2 | name: Check Join Requests |
2 | 3 |
|
3 | 4 | on: |
@@ -31,12 +32,16 @@ jobs: |
31 | 32 | echo "fetching GPG key from keyring.debian.org..." |
32 | 33 | gpg --homedir mygpg --keyserver keyring.debian.org --recv-keys "$key" |
33 | 34 | debuser=$(gpg --homedir mygpg -k ${key} | grep -E "^uid[[:space:]].*@debian.org>" | sed -e 's|.*<\([^@]*\)@debian.org>.*|\1|' | head -1) |
34 | | - echo "USER: ${debuser}" |
| 35 | + userid=$(gpg --homedir mygpg -k ${key} | grep -E "^uid[[:space:]].*\[" | sed -e 's|.*][[:space:]]*||' -e '/^[[:space:]]*$/d' | head -1) |
| 36 | + echo "primary USER: ${userid}" |
| 37 | + echo "Debian USER: ${debuser}" |
35 | 38 | echo "verifying the signature..." |
36 | 39 | gpg --homedir mygpg --verify file.txt |
37 | 40 | echo "DEBUSER=${debuser}" >> $GITHUB_OUTPUT |
| 41 | + echo "USERID=${userid}" >> $GITHUB_OUTPUT |
38 | 42 | outputs: |
39 | 43 | deb-username: ${{ steps.gpg-check.outputs.DEBUSER }} |
| 44 | + pgp-userid: ${{ steps.gpg-check.outputs.USERID }} |
40 | 45 |
|
41 | 46 | decline: |
42 | 47 | name: Decline membership |
|
72 | 77 |
|
73 | 78 | Please stay tuned until some human administrator accepts your application. |
74 | 79 |
|
| 80 | + otheremail: |
| 81 | + name: Debian Developer without @debian.org email |
| 82 | + runs-on: ubuntu-latest |
| 83 | + needs: ["keycheck"] |
| 84 | + if: "${{ needs.keycheck.outputs.deb-username == '' }}" |
| 85 | + steps: |
| 86 | + - name: Post username |
| 87 | + uses: peter-evans/create-or-update-comment@v2 |
| 88 | + with: |
| 89 | + issue-number: ${{ github.event.issue.number }} |
| 90 | + body: | |
| 91 | + Your membership application was correctly PGP signed with a key that is in the Debian keyring :tada:, |
| 92 | + although there's no debian.org email associated with that key. |
| 93 | + The first user ID in the key is `${{ needs.keycheck.outputs.pgp-userid }}`. |
| 94 | +
|
| 95 | + Please stay tuned until some human administrator accepts your application. |
0 commit comments