From 69bbd95281d123844fde84329a5e6431b695a71b Mon Sep 17 00:00:00 2001 From: Mateusz Urbanek Date: Fri, 25 Oct 2024 16:13:39 +0200 Subject: [PATCH] fix: trying to solve secrets Signed-off-by: Mateusz Urbanek --- .github/workflows/tests.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 63c50eb..77bd473 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,7 +1,7 @@ name: tests on: - pull_request: + pull_request_target: branches: [ '*' ] push: branches: @@ -28,8 +28,10 @@ jobs: with: go-version-file: ./go.mod cache: false - - run: | - export LINODE_TOKEN=${{ secrets.LINODE_TOKEN }} + - env: + LINODE_TOKEN: ${{ secrets.LINODE_TOKEN }} + run: | + export LINODE_TOKEN=${LINODE_TOKEN:?Token not set or empty} make \ test-integration @@ -41,11 +43,13 @@ jobs: with: go-version-file: ./go.mod cache: false - - run: | - export LINODE_TOKEN=${{ secrets.LINODE_TOKEN }} + - env: + LINODE_TOKEN: ${{ secrets.LINODE_TOKEN }} + run: | + export LINODE_TOKEN=${LINODE_TOKEN:?Token not set or empty} make \ IMG=localhost:5005/linode-cosi-driver \ - TAG=e2e-${{ github.ref_name }} \ + TAG=e2e \ cluster \ docker-build docker-push \ deploy-deps deploy