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

Commit ba1869d

Browse files
authored
ci: testing: build: x509: Overwrite as is stored via branch
1 parent 144cc4b commit ba1869d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/testing.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,8 @@ jobs:
133133
# Serialize the certificate
134134
cert_pem = cert.public_bytes(encoding=Encoding.PEM)
135135
136-
# Display or save the PEM encoded certificate
137-
contents = b""
138-
try:
139-
pathlib.Path("public-keys", "x509").read_bytes()
140-
except:
141-
pass
142-
pathlib.Path("public-keys", "x509").write_bytes(contents + b"\n" + cert_pem)
136+
# Save the PEM encoded certificate
137+
pathlib.Path("public-keys", "x509").write_bytes(cert_pem)
143138
- name: Remove ssh private
144139
run: |
145140
rm -v ssh-private

0 commit comments

Comments
 (0)