Skip to content

Commit

Permalink
Enforce TLS 1.3 where supported
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaso committed Nov 19, 2023
1 parent 5c8fcf8 commit 176781b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ runs:
if: success() || steps.generator.conclusion == 'failure'
shell: bash
run: |
curl --fail --silent --show-error --header "X-Vault-Token: ${VAULT_TOKEN}" --data "" "${VAULT_SERVER%/}/v1/auth/token/revoke-self"
curl --fail --silent --show-error --tlsv1.3 --header "X-Vault-Token: ${VAULT_TOKEN}" --data "" "${VAULT_SERVER%/}/v1/auth/token/revoke-self"
env:
VAULT_SERVER: ${{ inputs.vault_server }}
VAULT_TOKEN: ${{ steps.vault_auth.outputs.vault_token }}
1 change: 1 addition & 0 deletions generate-and-sign
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ curl \
--fail \
--silent \
--show-error \
--tlsv1.3 \
--output "$response" \
--header "X-Vault-Token: $VAULT_TOKEN" \
--data "{\"public_key\": \"$pubkey\"}" \
Expand Down
1 change: 1 addition & 0 deletions github-vault-auth
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ curl \
--fail \
--silent \
--show-error \
--tlsv1.3 \
--connect-timeout 10 \
--output "$vault_response" \
--data '{"jwt": "'"$github_jwt"'", "role": "'"$ROLE"'"}' \
Expand Down

0 comments on commit 176781b

Please sign in to comment.