From d240896711e31c540fc1cab79ae2e4cf63f00b1a Mon Sep 17 00:00:00 2001 From: Eric Smalling Date: Tue, 23 May 2023 19:11:27 -0500 Subject: [PATCH] Update deprecated checkout and upload-sarif actions (#1318) --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/snyk-code-manual.yml | 4 ++-- .github/workflows/snyk-code.yml | 4 ++-- .github/workflows/snyk-test-sarif.yml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c6ee0fe9f0..3ebc0c31fb 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -39,7 +39,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/snyk-code-manual.yml b/.github/workflows/snyk-code-manual.yml index 2acf0ea529..0cb48af11c 100644 --- a/.github/workflows/snyk-code-manual.yml +++ b/.github/workflows/snyk-code-manual.yml @@ -8,9 +8,9 @@ jobs: permissions: security-events: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Upload SARIF - uses: github/codeql-action/upload-sarif@v1 + uses: github/codeql-action/upload-sarif@v2 with: sarif_file: sarif.json # sarif_file: example111.json diff --git a/.github/workflows/snyk-code.yml b/.github/workflows/snyk-code.yml index e6d8ce799f..6acfa140db 100644 --- a/.github/workflows/snyk-code.yml +++ b/.github/workflows/snyk-code.yml @@ -4,7 +4,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: snyk/actions/setup@master - name: Snyk Test run: snyk code test --org=${{ secrets.SNYK_ORG }} --sarif > snyk-sarif2.json @@ -12,6 +12,6 @@ jobs: env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} - name: Upload SARIF file - uses: github/codeql-action/upload-sarif@v1 + uses: github/codeql-action/upload-sarif@v2 with: sarif_file: snyk-sarif2.json diff --git a/.github/workflows/snyk-test-sarif.yml b/.github/workflows/snyk-test-sarif.yml index 22a657e581..d583e5aafe 100644 --- a/.github/workflows/snyk-test-sarif.yml +++ b/.github/workflows/snyk-test-sarif.yml @@ -4,7 +4,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: snyk/actions/setup@master - name: Snyk Test run: snyk test --sarif-file-output=snyk-sarif1.json @@ -12,6 +12,6 @@ jobs: env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} - name: Upload SARIF file - uses: github/codeql-action/upload-sarif@v1 + uses: github/codeql-action/upload-sarif@v2 with: sarif_file: snyk-sarif1.json