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: x509: Overwrite as is stored via branch
Browse files Browse the repository at this point in the history
  • Loading branch information
pdxjohnny authored Dec 29, 2023
1 parent 144cc4b commit ba1869d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,8 @@ jobs:
# Serialize the certificate
cert_pem = cert.public_bytes(encoding=Encoding.PEM)
# Display or save the PEM encoded certificate
contents = b""
try:
pathlib.Path("public-keys", "x509").read_bytes()
except:
pass
pathlib.Path("public-keys", "x509").write_bytes(contents + b"\n" + cert_pem)
# Save the PEM encoded certificate
pathlib.Path("public-keys", "x509").write_bytes(cert_pem)
- name: Remove ssh private
run: |
rm -v ssh-private
Expand Down

0 comments on commit ba1869d

Please sign in to comment.