mirror of
https://github.com/containerd/containerd.git
synced 2026-08-12 22:16:27 +00:00
[github-action] release - Empty allowedSignersFile
Update the release Github Action workflow to create an empty allowedSignersFile and configure git to use it. This prevents failures when tags are signed with an SSH based key. Without this configuration, `git tag -v` errors with: ``` Output: error: gpg.ssh.allowedSignersFile needs to be configured and exist for ssh signature verification ``` Signed-off-by: Jared Ledvina <jared.ledvina@datadoghq.com>
This commit is contained in:
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@@ -36,6 +36,9 @@ jobs:
|
||||
|
||||
- name: Check signature
|
||||
run: |
|
||||
# git tag -v requires an allowedSignersFile to be configured and exist for ssh signature verification
|
||||
touch ${{ runner.temp }}/empty-allowedSignersFile
|
||||
git config --global gpg.ssh.allowedSignersFile ${{ runner.temp }}/empty-allowedSignersFile
|
||||
releasever=${{ github.ref }}
|
||||
releasever="${releasever#refs/tags/}"
|
||||
TAGCHECK=$(git tag -v ${releasever} 2>&1 >/dev/null) ||
|
||||
|
||||
Reference in New Issue
Block a user