mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
Improved github actions
This commit is contained in:
parent
bba0f3babe
commit
2198c24da3
5 changed files with 265 additions and 21 deletions
13
.github/actions/git-verify-ref/Dockerfile
vendored
Normal file
13
.github/actions/git-verify-ref/Dockerfile
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM debian:buster-slim
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y git gnupg && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
#RUN apk add --no-cache git gnupg
|
||||
|
||||
COPY ./public-keys/atmoz.asc /tmp/atmoz.asc
|
||||
RUN gpg --import /tmp/atmoz.asc
|
||||
|
||||
COPY ./entrypoint.sh /
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
6
.github/actions/git-verify-ref/action.yml
vendored
Normal file
6
.github/actions/git-verify-ref/action.yml
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
name: 'Verify git ref'
|
||||
description: 'Verify GPG signed commits or tags'
|
||||
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
60
.github/actions/git-verify-ref/entrypoint.sh
vendored
Executable file
60
.github/actions/git-verify-ref/entrypoint.sh
vendored
Executable file
|
@ -0,0 +1,60 @@
|
|||
#!/bin/bash
|
||||
set -eo pipefail
|
||||
|
||||
# Git reference
|
||||
ref="${1:-HEAD}"
|
||||
|
||||
# Number of required signatures
|
||||
required="${2:-"1"}"
|
||||
|
||||
# Options passed to git
|
||||
git_options="${*:3}"
|
||||
|
||||
|
||||
# GitHub Actions fix
|
||||
if [ "$HOME" == "/github/home/" ]; then
|
||||
cp -r /root/.gnupg /github/home/
|
||||
fi
|
||||
|
||||
# Show imported public keys
|
||||
gpg --list-keys --keyid LONG
|
||||
|
||||
# Check signatures
|
||||
raw_gpg_status=$(
|
||||
# shellcheck disable=SC2086
|
||||
git $git_options verify-commit --raw "$ref" 2>&1
|
||||
tags="$(git tag --points-at "$ref")"
|
||||
|
||||
if [ -n "$tags" ]; then
|
||||
# shellcheck disable=SC2046,SC2086
|
||||
git $git_options verify-tag --raw $tags 2>&1
|
||||
fi
|
||||
)
|
||||
|
||||
goodsig=0
|
||||
readarray -t status_line <<<"$raw_gpg_status"
|
||||
# read -r -a info <<<"$status"
|
||||
for status in "${status_line[@]}"; do
|
||||
#readarray -t -d" " info <<<"$status"
|
||||
read -r -a info <<<"$status"
|
||||
|
||||
case "${info[1]}" in
|
||||
"GOODSIG")
|
||||
echo "Verified signature from ${info[2]}"
|
||||
((goodsig++)) || true
|
||||
;;
|
||||
|
||||
"NO_PUBKEY")
|
||||
echo "WARNING: Missing public key for ${info[2]}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
echo "RESULT: Found $goodsig good signatures"
|
||||
|
||||
if [ "$goodsig" -lt "$required" ]; then
|
||||
echo "FAIL: Not enough signatures ($required was required)"
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
179
.github/actions/git-verify-ref/public-keys/atmoz.asc
vendored
Normal file
179
.github/actions/git-verify-ref/public-keys/atmoz.asc
vendored
Normal file
|
@ -0,0 +1,179 @@
|
|||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQINBFnfpzIBEAC5rEA7zyYl8JdcXowGzFquerQBhFEJkH2fiJ544v/9pCkkaCIv
|
||||
5tqSWDHAL2mbhh6Y5wVJtXuOGzPgJXd1zl8H88NlZpUInOyPtgLpy6Mr7H/0VzS6
|
||||
U6+SusR4u8Mwi+glNuVCFla7N0WsnWCK9sLo1hhvpFRoDY0cRPE8TnlhU5WO30b6
|
||||
g64yeZEqSIApgPftDolfDprtO4ah3br6bGLyfwOfOODPV4Aqn347WX8o0afP5gHp
|
||||
ogG2xHdwk2beLXR9CSnS1RiMQw/zthXb6aP5w3BpwevN5MHWx3wfatceyfhTACst
|
||||
LcliiOXLJvlvUiOL4W+vwkKp9v1N4aEDq4fPlEfE9Fh8YpN6/AHAafaxqfLaDLGn
|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Scz73WhLDzvRKdz4hwyDN/
|
||||
dFqBkw==
|
||||
=4DZp
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
28
.github/workflows/docker-image.yml
vendored
28
.github/workflows/docker-image.yml
vendored
|
@ -6,12 +6,7 @@ on:
|
|||
push:
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
GPG_KEY_FINGERPRINT: "838460D0CBD26750AB26DF8FB9FB68F98F88BA47"
|
||||
|
||||
jobs:
|
||||
# Run tests.
|
||||
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
@ -21,28 +16,19 @@ jobs:
|
|||
fetch-depth: 0
|
||||
submodules: true
|
||||
|
||||
# Only allow commits signed by owner
|
||||
- name: Verify commit signature
|
||||
run: |
|
||||
verify_head() {
|
||||
( git verify-commit --raw HEAD || git verify-tag --raw $(git tag --points-at HEAD) ) 2>&1 \
|
||||
| grep -e VALIDSIG | grep -q "$1"
|
||||
}
|
||||
- name: Verify signature
|
||||
uses: ./.github/actions/git-verify-ref
|
||||
|
||||
if verify_head "$GPG_KEY_FINGERPRINT"; then
|
||||
echo "Verified signature from $GPG_KEY_FINGERPRINT"
|
||||
else
|
||||
echo "Missing signature by $GPG_KEY_FINGERPRINT"
|
||||
exit 1
|
||||
fi
|
||||
- name: Run ShellCheck
|
||||
uses: ludeeus/action-shellcheck@master
|
||||
with:
|
||||
ignore: tests/shunit2
|
||||
|
||||
- name: Run tests
|
||||
run: tests/run
|
||||
|
||||
# Push image to GitHub Packages.
|
||||
# See also https://docs.docker.com/docker-hub/builds/
|
||||
push:
|
||||
# Ensure test job passes before pushing image.
|
||||
if: ${{ github.event_name == "push" && github.ref == "master" }}
|
||||
needs: test
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Reference in a new issue