forked from Schaffenburg/schaffendoor-sshkeys
add workflow
This commit is contained in:
parent
b5fdbdacdc
commit
74f71728c3
1 changed files with 19 additions and 0 deletions
19
.forgejo/workflows/validate-keys.yaml
Normal file
19
.forgejo/workflows/validate-keys.yaml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
name: test
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: 'code.forgejo.org/oci/ci:1'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: for i in *.pub; do ./check_key.sh $i; done
|
||||||
|
- run: |
|
||||||
|
echo assembeling authorized keys &&
|
||||||
|
cat keys/*.pub > authorized_keys
|
||||||
|
- run: ssh-keygen -l -f authorized_keys
|
Loading…
Add table
Reference in a new issue