From 59b5294700cb953be47ff1b178e1dd640b7ee6c4 Mon Sep 17 00:00:00 2001 From: Gabriel J Mendoza Date: Wed, 25 Feb 2026 21:36:56 -0500 Subject: [PATCH] fixing github workflows --- .../arm-AL2023-build-test-push-workflow-AL2023.yml | 6 ++++-- .github/workflows/arm-Ubuntu-build-test-push-workflow.yml | 6 ++++-- .github/workflows/build-test-push-workflow.yml | 6 ++++-- .github/workflows/distroless-build-test-push-workflow.yml | 6 ++++-- .github/workflows/prodsec-workflow.yml | 5 +++-- 5 files changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/workflows/arm-AL2023-build-test-push-workflow-AL2023.yml b/.github/workflows/arm-AL2023-build-test-push-workflow-AL2023.yml index 4369ac1eb..586b27bc1 100644 --- a/.github/workflows/arm-AL2023-build-test-push-workflow-AL2023.yml +++ b/.github/workflows/arm-AL2023-build-test-push-workflow-AL2023.yml @@ -29,6 +29,8 @@ jobs: unit-tests: runs-on: ubuntu-latest needs: check-formating + env: + COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} steps: - uses: actions/checkout@v2 - name: Dotenv Action @@ -49,8 +51,8 @@ jobs: - name: Run Unit Tests run: make test - name: Run Code Coverage - if: ${{ secrets.COVERALLS_TOKEN != '' }} - run: goveralls -coverprofile=coverage.out -service=circle-ci -repotoken ${{ secrets.COVERALLS_TOKEN }} + if: ${{ env.COVERALLS_TOKEN != '' }} + run: goveralls -coverprofile=coverage.out -service=circle-ci -repotoken ${{ env.COVERALLS_TOKEN }} - name: Upload Coverage artifacts uses: actions/upload-artifact@v4.4.0 with: diff --git a/.github/workflows/arm-Ubuntu-build-test-push-workflow.yml b/.github/workflows/arm-Ubuntu-build-test-push-workflow.yml index b27ac0edb..33ff94869 100644 --- a/.github/workflows/arm-Ubuntu-build-test-push-workflow.yml +++ b/.github/workflows/arm-Ubuntu-build-test-push-workflow.yml @@ -29,6 +29,8 @@ jobs: unit-tests: runs-on: ubuntu-latest needs: check-formating + env: + COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} steps: - uses: actions/checkout@v2 - name: Dotenv Action @@ -49,8 +51,8 @@ jobs: - name: Run Unit Tests run: make test - name: Run Code Coverage - if: ${{ secrets.COVERALLS_TOKEN != '' }} - run: goveralls -coverprofile=coverage.out -service=circle-ci -repotoken ${{ secrets.COVERALLS_TOKEN }} + if: ${{ env.COVERALLS_TOKEN != '' }} + run: goveralls -coverprofile=coverage.out -service=circle-ci -repotoken ${{ env.COVERALLS_TOKEN }} - name: Upload Coverage artifacts uses: actions/upload-artifact@v4.4.0 with: diff --git a/.github/workflows/build-test-push-workflow.yml b/.github/workflows/build-test-push-workflow.yml index 8cf8aeab6..dee987568 100644 --- a/.github/workflows/build-test-push-workflow.yml +++ b/.github/workflows/build-test-push-workflow.yml @@ -40,6 +40,8 @@ jobs: run: make vet && if [[ $? -ne 0 ]]; then false; fi unit-tests: runs-on: ubuntu-latest + env: + COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} steps: - uses: actions/checkout@v2 - name: Dotenv Action @@ -61,8 +63,8 @@ jobs: run: | make test - name: Run Code Coverage - if: ${{ secrets.COVERALLS_TOKEN != '' }} - run: goveralls -shallow -coverprofile=coverage.out -service=circle-ci -repotoken ${{ secrets.COVERALLS_TOKEN }} + if: ${{ env.COVERALLS_TOKEN != '' }} + run: goveralls -shallow -coverprofile=coverage.out -service=circle-ci -repotoken ${{ env.COVERALLS_TOKEN }} - name: Upload Coverage artifacts uses: actions/upload-artifact@v4.4.0 with: diff --git a/.github/workflows/distroless-build-test-push-workflow.yml b/.github/workflows/distroless-build-test-push-workflow.yml index 0912a341d..b17917a73 100644 --- a/.github/workflows/distroless-build-test-push-workflow.yml +++ b/.github/workflows/distroless-build-test-push-workflow.yml @@ -35,6 +35,8 @@ jobs: unit-tests: runs-on: ubuntu-latest needs: check-formating + env: + COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} steps: - uses: actions/checkout@v2 - name: Dotenv Action @@ -55,8 +57,8 @@ jobs: - name: Run Unit Tests run: make test - name: Run Code Coverage - if: ${{ secrets.COVERALLS_TOKEN != '' }} - run: goveralls -shallow -coverprofile=coverage.out -service=circle-ci -repotoken ${{ secrets.COVERALLS_TOKEN }} + if: ${{ env.COVERALLS_TOKEN != '' }} + run: goveralls -shallow -coverprofile=coverage.out -service=circle-ci -repotoken ${{ env.COVERALLS_TOKEN }} - name: Upload Coverage artifacts uses: actions/upload-artifact@v4.4.0 with: diff --git a/.github/workflows/prodsec-workflow.yml b/.github/workflows/prodsec-workflow.yml index 777075246..1f62f4a43 100644 --- a/.github/workflows/prodsec-workflow.yml +++ b/.github/workflows/prodsec-workflow.yml @@ -33,13 +33,14 @@ jobs: SPLUNK_OPERATOR_IMAGE_NAME: splunk/splunk-operator ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }} S3_REGION: ${{ secrets.AWS_DEFAULT_REGION }} + FOSSA_API_TOKEN: ${{ secrets.FOSSA_API_TOKEN }} steps: - uses: actions/checkout@v2 - name: Dotenv Action id: dotenv uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 - name: Run FOSSA Test - if: ${{ secrets.FOSSA_API_TOKEN != '' }} + if: ${{ env.FOSSA_API_TOKEN != '' }} uses: fossas/fossa-action@main with: - api-key: ${{secrets.FOSSA_API_TOKEN}} \ No newline at end of file + api-key: ${{ env.FOSSA_API_TOKEN }} \ No newline at end of file