build(deps): bump github/codeql-action from 2.21.8 to 2.21.9 #7147
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "TLS protocol scan" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [main] | |
permissions: read-all | |
jobs: | |
tls-check: | |
runs-on: ubuntu-latest | |
name: TLS check | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
cache: false | |
go-version: 1.20.x | |
- name: Install dependencies | |
run: | | |
cd $GITHUB_WORKSPACE | |
sudo apt-get update | |
sudo apt-get install -y apache2-utils openssl | |
mkdir -p test/data | |
cd test/data | |
../scripts/gen_certs.sh | |
htpasswd -bBn test test123 > htpasswd | |
- name: Check for TLS settings | |
continue-on-error: true | |
run: | | |
cd $GITHUB_WORKSPACE | |
make binary | |
bin/zot-linux-amd64 serve examples/config-tls.json & | |
sleep 5 | |
curl -kv --tls-max 1.0 -0 https://localhost:8080/v2/ | |
if [[ "$?" -eq 0 ]]; then echo "TLSv1.0 detected"; exit 1; fi | |
curl -kv --tls-max 1.1 -0 https://localhost:8080/v2/ | |
if [[ "$?" -eq 0 ]]; then echo "TLSv1.1 detected"; exit 1; fi | |
curl -kv --tls-max 1.2 -0 https://localhost:8080/v2/ | |
if [[ "$?" -ne 0 ]]; then echo "TLSv1.2 missing"; exit 1; fi |