From a93493132a159ad60ecf472b9d1e0abcda4bc0c2 Mon Sep 17 00:00:00 2001 From: Aaron Miller Date: Wed, 31 Jan 2024 17:40:25 -0800 Subject: [PATCH] Update ci-test.yaml moving repo ID env to job level --- .github/workflows/ci-test.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-test.yaml b/.github/workflows/ci-test.yaml index 489fe0f..fe83a1a 100644 --- a/.github/workflows/ci-test.yaml +++ b/.github/workflows/ci-test.yaml @@ -9,6 +9,10 @@ on: jobs: build: runs-on: ubuntu-latest + + # set at job level + env: + GITHUB_REPOSITORY_ID: ${{ github.repository_id }} steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 @@ -33,18 +37,12 @@ jobs: # pwd # ls -l /home/runner/work/crud-app/crud-app/ - - name: Get Repository ID - id: repo_id - run: echo "::set-output name=repo_id::$(curl -sH -X https://api.github.com/repos/${{ github.repository }} | jq -r .id)" - - name: Run CUSTOMIZED OX Security Scan to check for vulnerabilities # - name: Run OX Security Scan to check for vulnerabilities # with: # ox_api_key: ${{ secrets.OX_API_KEY }} # ox_timeout: 1 # ox_fail_on_timeout: true - env: - GITHUB_REPOSITORY_ID: ${{ steps.repo_id.outputs.repo_id }} run: | echo "Repository ID: ${{ steps.repo_id.outputs.repo_id }}" ${{ github.workspace }}/.github/workflows/custom-ox.sh