From 74c0bdac0b7aa636e9202be8173b5e0bee0b6796 Mon Sep 17 00:00:00 2001 From: Matt Bishop Date: Mon, 13 Jan 2025 13:54:52 -0500 Subject: [PATCH] Update scanning Actions and lint (#93) * Update scanning Actions * Lint --- .github/workflows/deploy.yml | 4 ++++ .github/workflows/scan.yml | 9 +++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7050a77..6f50575 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,7 +13,9 @@ permissions: jobs: build: + name: Build runs-on: ubuntu-22.04 + steps: - name: Checkout your repository using git uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -21,11 +23,13 @@ jobs: uses: withastro/action@44cbafd43567733e3b007918c6e0711480560516 # v3.0.0 deploy: + name: Deploy needs: build runs-on: ubuntu-22.04 environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} + steps: - name: Deploy to GitHub Pages id: deployment diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml index ead96ed..cd5219d 100644 --- a/.github/workflows/scan.yml +++ b/.github/workflows/scan.yml @@ -5,8 +5,6 @@ on: push: branches: - "main" - - "rc" - - "hotfix-rc" pull_request_target: types: [opened, synchronize] @@ -31,7 +29,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Scan with Checkmarx - uses: checkmarx/ast-github-action@f0869bd1a37fddc06499a096101e6c900e815d81 # 2.0.36 + uses: checkmarx/ast-github-action@184bf2f64f55d1c93fd6636d539edf274703e434 # 2.0.41 env: INCREMENTAL: "${{ contains(github.event_name, 'pull_request') && '--sast-incremental' || '' }}" with: @@ -46,7 +44,7 @@ jobs: --output-path . ${{ env.INCREMENTAL }} - name: Upload Checkmarx results to GitHub - uses: github/codeql-action/upload-sarif@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0 + uses: github/codeql-action/upload-sarif@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1 with: sarif_file: cx_result.sarif @@ -66,10 +64,9 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Scan with SonarCloud - uses: sonarsource/sonarcloud-github-action@383f7e52eae3ab0510c3cb0e7d9d150bbaeab838 # v3.1.0 + uses: sonarsource/sonarqube-scan-action@bfd4e558cda28cda6b5defafb9232d191be8c203 # v4.2.1 env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: args: > -Dsonar.organization=${{ github.repository_owner }}