Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
ci: testing: build: Update search for SCITT notary key using key comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pdxjohnny authored Dec 15, 2023
1 parent fbd4d42 commit ebb2721
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
- name: Generate keypair to sign SCITT statement
id: scitt-gen-keypair
run: |
ssh-keygen -q -f ssh-private -t ecdsa -b 384 -N '' -I "$(date -Iseconds)" <<<y
ssh-keygen -q -f ssh-private -t ecdsa -b 384 -N '' -C "$(head -n 100 /dev/urandom | sha384sum | awk '{print $1}')" -I "$(date -Iseconds)" <<<y
cat ssh-private | python -c 'import sys; from cryptography.hazmat.primitives import serialization; print(serialization.load_ssh_private_key(sys.stdin.buffer.read(), password=None).private_bytes(encoding=serialization.Encoding.PEM, format=serialization.PrivateFormat.PKCS8, encryption_algorithm=serialization.NoEncryption()).decode().rstrip())' > private-key.pem
cat ssh-private.pub | tee -a public-keys/authorized_keys
rm -v ssh-private
Expand All @@ -107,8 +107,8 @@ jobs:
set +e
found=1
while [ ${found} -eq 1 ]; do
curl -vfL https://raw.githubusercontent.com/intel/dffml/public-keys/authorized_keys | tee authorized_keys
grep "$(cat ../ssh-private.pub)" authorized_keys
curl -vfL https://raw.githubusercontent.com/${{ github.repository }}/public-keys/authorized_keys | tee authorized_keys
grep "$(cat ../ssh-private.pub | awk '{print $NF}')" authorized_keys
found=$?
done
- name: Submit SBOM to SCITT
Expand Down

0 comments on commit ebb2721

Please sign in to comment.