From a0113fb189749e00a58779765f669186d8a12094 Mon Sep 17 00:00:00 2001 From: Yotam loewenbach Date: Tue, 18 Jun 2024 12:01:52 +0300 Subject: [PATCH] Use `secrets` in workflows --- .github/workflows/logzio-logs-collector-test.yaml | 2 +- .github/workflows/logzio-telemetry-test.yaml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/logzio-logs-collector-test.yaml b/.github/workflows/logzio-logs-collector-test.yaml index 2fb7d8ed..7acab14a 100644 --- a/.github/workflows/logzio-logs-collector-test.yaml +++ b/.github/workflows/logzio-logs-collector-test.yaml @@ -62,7 +62,7 @@ jobs: - name: Run Go Tests env: - LOGZIO_LOGS_API_TOKEN: ${{ env.LOGZIO_LOGS_API_TOKEN }} + LOGZIO_LOGS_API_TOKEN: ${{ secrets.LOGZIO_LOGS_API_TOKEN }} run: | go get go.uber.org/zap go test -v ./tests/logs_e2e_test.go ./tests/common.go diff --git a/.github/workflows/logzio-telemetry-test.yaml b/.github/workflows/logzio-telemetry-test.yaml index 31e18fcf..6b2ab9a2 100644 --- a/.github/workflows/logzio-telemetry-test.yaml +++ b/.github/workflows/logzio-telemetry-test.yaml @@ -74,8 +74,8 @@ jobs: - name: Run Go Tests env: - LOGZIO_METRICS_API_KEY: ${{ env.LOGZIO_METRICS_API_KEY }} - LOGZIO_TRACES_API_KEY: ${{ env.LOGZIO_TRACES_API_KEY }} + LOGZIO_METRICS_API_KEY: ${{ secrets.LOGZIO_METRICS_API_KEY }} + LOGZIO_TRACES_API_KEY: ${{ secrets.LOGZIO_TRACES_API_KEY }} run: | go get go.uber.org/zap go test -v ./tests/traces_e2e_test.go ./tests/common.go @@ -86,4 +86,5 @@ jobs: - name: Delete Kind cluster if: always() - run: kind delete cluster --name kind-${{ github.run_id }}-${{ matrix.mode }} \ No newline at end of file + run: kind delete cluster --name kind-${{ github.run_id }}-${{ matrix.mode }} +