Skip to content

Commit

Permalink
Update GH Actions to Use Node20 Versions (#68)
Browse files Browse the repository at this point in the history
* Update GH Actions to Use Node20 Versions

* Rename CI to Publish

This was done for cross-repo consistency

* Fix Typo in `Lint` job
  • Loading branch information
Mythicaeda authored Feb 26, 2024
1 parent d690c47 commit cffcb2d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lint
name: Lint

on:
push:
Expand All @@ -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
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml → .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: Publish

on:
push:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cffcb2d

Please sign in to comment.