Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated naming of r4 certs to trigger automated testing + add ssai to the automated validation #169

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/artifact_validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,23 @@ jobs:
with:
name: Compatibility_bc_csv
path: ./output/
ssai_validation:
runs-on: ubuntu-latest
container: jethrolow/quantcrypt_validator
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Test artifacts with SSAI
run: ./src/test_certs_r4.sh ssai
- name: Save artifacts
uses: actions/upload-artifact@v4
with:
name: Compatibility_ssai_csv
path: ./output/
build_results_html:
runs-on: ubuntu-latest
container: ubuntu:latest
needs: [oqs_validation, bc_validation]
needs: [oqs_validation, bc_validation, ssai_validation]
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -64,6 +77,11 @@ jobs:
with:
name: Compatibility_bc_csv
path: output/
- name: Get SSAI results from previous job
uses: actions/download-artifact@v4
with:
name: Compatibility_ssai_csv
path: output/
- name: Build compat matrix (r4)
run: ./src/rebuild_results_certs_r4.sh
- name: Copy output files
Expand Down
5 changes: 4 additions & 1 deletion src/test_certs_r4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ $# -lt 1 ]; then
fi

verifier=$1
if [ "$verifier" != "bc" ] && [ "$verifier" != "oqs" ]; then
if [ "$verifier" != "bc" ] && [ "$verifier" != "oqs" ] && [ "$verifier" != "ssai"]; then
echo "ERROR: verifier \"$verifier\" not supported"
exit -1
fi
Expand Down Expand Up @@ -64,6 +64,9 @@ test_ta () {
elif [ "$verifier" = "oqs" ]; then
output=$(openssl verify -check_ss_sig -verbose -CAfile $tafile $tafile 2>&1)
status=$?
elif [ "$verifier" = "ssai" ]; then
output=$(validator ta --ta-certificate $tafile 2>&1)
status=$?
else
echo "ERROR: verifier \"$verifier\" not supported"
exit -1
Expand Down