Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .github/workflows/build-rpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,27 @@ jobs:
- name: Import GPG key
run: |
echo "$GPG_PRIVATE_KEY" | base64 --decode | gpg --import --batch --yes
gpg -K --keyid-format long
gpg --list-secret-keys --with-subkey-fingerprints --keyid-format long
gpg --list-secret-keys --with-colons
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}

- name: Show signing subkey expiration
shell: bash
run: |
gpg --list-secret-keys --with-colons \
| awk -F: '
$1=="ssb" && $12 ~ /s/ {
keyid = $5
expires = $7
if (expires == "" || expires == "0") {
edate = "never"
} else {
cmd = "date -u -d @" expires " +\"%Y-%m-%d %H:%M:%S UTC\""
cmd | getline edate
close(cmd)
}
printf "signing subkey %s expires: %s\n", keyid, edate
}
'

- name: Get version
id: get_version
Expand Down
Loading