From cffcb2ddbb2c61de8f4a8178418daf21f803ea16 Mon Sep 17 00:00:00 2001 From: Mythicaeda Date: Mon, 26 Feb 2024 14:05:29 -0800 Subject: [PATCH] Update GH Actions to Use Node20 Versions (#68) * Update GH Actions to Use Node20 Versions * Rename CI to Publish This was done for cross-repo consistency * Fix Typo in `Lint` job --- .github/workflows/codeql.yml | 10 +++++----- .github/workflows/lint.yml | 8 ++++---- .github/workflows/{ci.yml => publish.yml} | 18 +++++++++--------- .github/workflows/test.yml | 4 ++-- 4 files changed, 20 insertions(+), 20 deletions(-) rename .github/workflows/{ci.yml => publish.yml} (84%) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 2354024..0b74463 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -28,22 +28,22 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 - name: NASA Scrub run: | pip install nasa-scrub python3 -m scrub.tools.parsers.translate_results /home/runner/work/aerie-gateway/results/*.sarif /home/runner/work/aerie-gateway/results/codeql.scrub ${{ github.workspace }} scrub python3 -m scrub.tools.parsers.csv_parser /home/runner/work/aerie-gateway/results - name: Upload CodeQL Artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: codeql-artifacts path: /home/runner/work/aerie-gateway/results/* diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4bd5248..eedc221 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,4 @@ -name: lint +name: Lint on: push: @@ -9,14 +9,14 @@ on: - develop jobs: - list: + lint: runs-on: ubuntu-latest permissions: contents: read steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: npm diff --git a/.github/workflows/ci.yml b/.github/workflows/publish.yml similarity index 84% rename from .github/workflows/ci.yml rename to .github/workflows/publish.yml index 57cb021..d967f00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: ci +name: Publish on: push: @@ -13,15 +13,15 @@ env: REGISTRY: ghcr.io jobs: - ci: + publish: runs-on: ubuntu-latest permissions: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: npm @@ -34,20 +34,20 @@ jobs: rm -rf node_modules npm install --only=production - name: Login to the Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ github.token }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Extract Metadata (tags and labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ github.repository }} - name: Build Docker Image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: . load: true @@ -61,7 +61,7 @@ jobs: ignore-unfixed: true severity: 'CRITICAL' - name: Push Docker Image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: . push: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 122a428..55cf9de 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,9 +17,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: npm