Skip to content

Commit

Permalink
Hide OC TOKEN in console
Browse files Browse the repository at this point in the history
  • Loading branch information
ahus1 committed Aug 17, 2023
1 parent ba6b5e9 commit 54a1e54
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/prometheus-metrics-calc/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ runs:
description="${{ inputs.calculatedMetricName }} per Pod in ${{ inputs.replicas }} Pod cluster"
if [ -f ${{ inputs.output }} ]; then
cat ${{ inputs.output }} | jq --arg testName "${{ inputs.performedTestName }}" --arg key "${description}" \
--arg val ${CALCULATED_METRIC_VALUE} '. + {($testName): {($ARGS.named["key"]):($ARGS.named["val"])}}' \
--arg val ${CALCULATED_METRIC_VALUE} '. + {($testName): {($key):($val|tonumber)}}' \
| tee ${{ inputs.output }}
else
jq -n --arg testName "${{ inputs.performedTestName }}" --arg key "${description}" \
--arg val ${CALCULATED_METRIC_VALUE} '{($testName): {($ARGS.named["key"]):($ARGS.named["val"])}}' > ${{ inputs.output }}
--arg val ${CALCULATED_METRIC_VALUE} '{($testName): {($key):($val|tonumber)}}' > ${{ inputs.output }}
fi
1 change: 1 addition & 0 deletions .github/actions/prometheus-run-queries/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ runs:
host=$(oc -n openshift-monitoring get route thanos-querier -ojsonpath='{.spec.host}')
token=$(oc whoami -t)
echo "THANOS_HOST=$host" >> $GITHUB_ENV
echo "::add-mask::$token"
echo "OC_TOKEN=$token" >> $GITHUB_ENV
- id: cpu-sec-util-query
Expand Down
1 change: 1 addition & 0 deletions ansible/aws_ec2.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash +x
set -e
set -x
cd $(dirname "${BASH_SOURCE[0]}")

OPERATION=$1
Expand Down

0 comments on commit 54a1e54

Please sign in to comment.