Skip to content

Commit

Permalink
assuming base64-encoded certs
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed Oct 31, 2024
1 parent 5798541 commit 1d0818e
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,11 @@ jobs:
shared_actions_ref: "${{steps.reexport.outputs.shared_actions_ref}}"
steps:
- id: reexport
# NOTE: certs are base-64 encoded so that they're easier to handle here
run: |
{
echo 'cat << EOF'
echo ${{ secrets.OTEL_EXPORTER_OTLP_CA_CERTIFICATE }}
echo EOF
} | base64 >> ${GITHUB_OUTPUT}
{
echo 'client_cert<<EOF'
echo ${{ secrets.OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE }}
echo EOF
} | base64 >> ${GITHUB_OUTPUT}
{
echo 'client_key<<EOF'
echo ${{ secrets.OTEL_EXPORTER_OTLP_CLIENT_KEY }}
echo EOF
} | base64 >> ${GITHUB_OUTPUT}
echo ca_cert="${{ secrets.OTEL_EXPORTER_OTLP_CA_CERTIFICATE }}" >> ${GITHUB_OUTPUT}
echo client_cert="${{ secrets.OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE }}" >> ${GITHUB_OUTPUT}
echo client_key="${{ secrets.OTEL_EXPORTER_OTLP_CLIENT_KEY }}" >> ${GITHUB_OUTPUT}
echo endpoint="${OTEL_EXPORTER_OTLP_ENDPOINT}" >> ${GITHUB_OUTPUT}
echo service_name="${OTEL_SERVICE_NAME}" >> ${GITHUB_OUTPUT}
echo otel_resource_attributes="${OTEL_RESOURCE_ATTRIBUTES}" >> ${GITHUB_OUTPUT}
Expand Down

0 comments on commit 1d0818e

Please sign in to comment.