From ed0977ac1bff33b3eb903b91afe47816b2860f02 Mon Sep 17 00:00:00 2001 From: "Daniel A.C. Martin" Date: Tue, 16 Jul 2024 15:51:10 +0100 Subject: [PATCH] CI: Update components in pipeline --- .github/actions/deploy-to-heroku/action.yml | 2 +- .github/actions/deploy-to-netlify/action.yml | 2 +- .github/actions/scan-app/action.yml | 2 +- .github/actions/scan-code/action.yml | 4 ++-- .github/actions/scan-dependencies/action.yml | 2 +- .github/actions/setup/action.yml | 10 +++++----- .github/workflows/change-assurance.yml | 14 +++++++------- .github/workflows/deploy-to-heroku.yml | 4 ++-- .github/workflows/deploy-to-netlify.yml | 4 ++-- .github/workflows/deploy.yml | 4 ++-- .github/workflows/publish.yml | 2 +- .github/workflows/static-security-analysis.yml | 2 +- .github/workflows/update-built-files.yml | 4 ++-- 13 files changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/actions/deploy-to-heroku/action.yml b/.github/actions/deploy-to-heroku/action.yml index 789ebdb4..b5e4a3df 100644 --- a/.github/actions/deploy-to-heroku/action.yml +++ b/.github/actions/deploy-to-heroku/action.yml @@ -17,7 +17,7 @@ runs: steps: - name: Login to Heroku - uses: AkhileshNS/heroku-deploy@v3.12.14 + uses: AkhileshNS/heroku-deploy@v3.13.15 with: heroku_api_key: ${{ inputs.heroku-api-key }} heroku_app_name: '' diff --git a/.github/actions/deploy-to-netlify/action.yml b/.github/actions/deploy-to-netlify/action.yml index e402ef0c..8b31c565 100644 --- a/.github/actions/deploy-to-netlify/action.yml +++ b/.github/actions/deploy-to-netlify/action.yml @@ -31,7 +31,7 @@ runs: - id: deploy name: Deploy - uses: nwtgck/actions-netlify@v2.0.0 + uses: nwtgck/actions-netlify@v3.0.0 with: publish-dir: "${{ inputs.app && format('apps/{0}/', inputs.app) }}pkg/netlify/publish/" functions-dir: "${{ inputs.app && format('apps/{0}/', inputs.app) }}pkg/netlify/functions/" diff --git a/.github/actions/scan-app/action.yml b/.github/actions/scan-app/action.yml index 34db4e14..a22df3d8 100644 --- a/.github/actions/scan-app/action.yml +++ b/.github/actions/scan-app/action.yml @@ -31,7 +31,7 @@ runs: run: | PRETTY_TARGET="${TARGET#https://}" echo "write-issue=$([[ \"${GITHUB_REF#refs/heads/}\" != \"${BASELINE_BRANCH}\" ]] && echo 'false' || echo 'true')" >> ${GITHUB_OUTPUT} - echo "fail-action=$([[ \"${GITHUB_REF#refs/heads/}\" != \"${BASELINE_BRANCH}\" ]] && echo 'true' || true)" >> ${GITHUB_OUTPUT} + echo "fail-action=$([[ \"${GITHUB_REF#refs/heads/}\" != \"${BASELINE_BRANCH}\" ]] && echo 'true' || echo 'false')" >> ${GITHUB_OUTPUT} echo "prefix=${PRETTY_TARGET:-${APP}}" >> ${GITHUB_OUTPUT} echo "target=${TARGET:-http://localhost:8080}" >> ${GITHUB_OUTPUT} diff --git a/.github/actions/scan-code/action.yml b/.github/actions/scan-code/action.yml index f14924d0..416d831c 100644 --- a/.github/actions/scan-code/action.yml +++ b/.github/actions/scan-code/action.yml @@ -5,9 +5,9 @@ runs: steps: - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: 'javascript' - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/actions/scan-dependencies/action.yml b/.github/actions/scan-dependencies/action.yml index 2ba00105..025a9ddd 100644 --- a/.github/actions/scan-dependencies/action.yml +++ b/.github/actions/scan-dependencies/action.yml @@ -9,7 +9,7 @@ runs: steps: - name: Cache vdb - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ${{ github.workspace }}/vdb diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 50f75241..c7558a19 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -19,19 +19,19 @@ runs: sudo update-locale LANG=${{ env.LANG }} - name: Setup PNPM - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v3.0.0 with: version: 7.33.6 run_install: false - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ inputs.node }} cache: 'pnpm' - name: Cache Cypress.io - uses: actions/cache@v3 + uses: actions/cache@v4 env: cache-hash: ${{ hashFiles('pnpm-lock.yaml') }} with: @@ -40,7 +40,7 @@ runs: - name: Pull dependencies if: ${{ !inputs.frozen-lockfile || inputs.frozen-lockfile == 'false' }} - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v3.0.0 with: version: 7.33.6 run_install: | @@ -49,7 +49,7 @@ runs: - name: Pull dependencies (frozen lock-file) if: ${{ inputs.frozen-lockfile && inputs.frozen-lockfile != 'false' }} - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v3.0.0 with: version: 7.33.6 run_install: true diff --git a/.github/workflows/change-assurance.yml b/.github/workflows/change-assurance.yml index 8b4c3a76..3f45ee61 100644 --- a/.github/workflows/change-assurance.yml +++ b/.github/workflows/change-assurance.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Scan code-base uses: ./.github/actions/scan-code @@ -30,7 +30,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup uses: ./.github/actions/setup @@ -50,7 +50,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup uses: ./.github/actions/setup @@ -71,7 +71,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup uses: ./.github/actions/setup @@ -84,7 +84,7 @@ jobs: app: ${{ matrix.app }} - name: Save build directory - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: 'build-${{ matrix.app }}' path: "${{ matrix.app && format('apps/{0}/', matrix.app) }}dist" @@ -103,7 +103,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup uses: ./.github/actions/setup @@ -111,7 +111,7 @@ jobs: node: 18 - name: Download build directory - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: 'build-${{ matrix.app }}' path: "${{ matrix.app && format('apps/{0}/', matrix.app) }}dist" diff --git a/.github/workflows/deploy-to-heroku.yml b/.github/workflows/deploy-to-heroku.yml index 0abbc91f..1afa91ac 100644 --- a/.github/workflows/deploy-to-heroku.yml +++ b/.github/workflows/deploy-to-heroku.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup uses: ./.github/actions/setup @@ -58,7 +58,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup uses: ./.github/actions/setup diff --git a/.github/workflows/deploy-to-netlify.yml b/.github/workflows/deploy-to-netlify.yml index 5b2c264c..39067c53 100644 --- a/.github/workflows/deploy-to-netlify.yml +++ b/.github/workflows/deploy-to-netlify.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup uses: ./.github/actions/setup @@ -64,7 +64,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup uses: ./.github/actions/setup diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9296f130..87d795d8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -22,7 +22,7 @@ jobs: node: 18 - name: Push Storybook to Chromatic - uses: chromaui/action@v1 + uses: chromaui/action@v11 with: token: ${{ secrets.GITHUB_TOKEN }} projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fb36d646..d61c8fe8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ secrets.PAT }} diff --git a/.github/workflows/static-security-analysis.yml b/.github/workflows/static-security-analysis.yml index 5e44cf55..c3beefcf 100644 --- a/.github/workflows/static-security-analysis.yml +++ b/.github/workflows/static-security-analysis.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Scan code-base uses: ./.github/actions/scan-code diff --git a/.github/workflows/update-built-files.yml b/.github/workflows/update-built-files.yml index 17f222c3..6f602378 100644 --- a/.github/workflows/update-built-files.yml +++ b/.github/workflows/update-built-files.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ secrets.PAT }} @@ -41,7 +41,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Scan code-base uses: ./.github/actions/scan-code