From 94acfdc22cfd4d8bc087c4226381aa3332d2dcc5 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Tue, 11 Jun 2024 20:22:17 +0100 Subject: [PATCH] Upload SARIF with ref/sha inputs: Generate SARIF with analyze Action --- .github/workflows/__upload-ref-sha-input.yml | 6 ++++++ pr-checks/checks/upload-ref-sha-input.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/__upload-ref-sha-input.yml b/.github/workflows/__upload-ref-sha-input.yml index e7dcb21380..fb264980b9 100644 --- a/.github/workflows/__upload-ref-sha-input.yml +++ b/.github/workflows/__upload-ref-sha-input.yml @@ -70,6 +70,12 @@ jobs: - name: Build code shell: bash run: ./build.sh + # Generate some SARIF we can upload with the upload-sarif step + - uses: ./../action/analyze + with: + ref: refs/heads/main + sha: 5e235361806c361d4d3f8859e3c897658025a9a2 + upload: never - uses: ./../action/upload-sarif with: ref: refs/heads/main diff --git a/pr-checks/checks/upload-ref-sha-input.yml b/pr-checks/checks/upload-ref-sha-input.yml index 0853181c91..dea1b935e5 100644 --- a/pr-checks/checks/upload-ref-sha-input.yml +++ b/pr-checks/checks/upload-ref-sha-input.yml @@ -10,6 +10,12 @@ steps: - name: Build code shell: bash run: ./build.sh + # Generate some SARIF we can upload with the upload-sarif step + - uses: ./../action/analyze + with: + ref: 'refs/heads/main' + sha: '5e235361806c361d4d3f8859e3c897658025a9a2' + upload: never - uses: ./../action/upload-sarif with: ref: 'refs/heads/main'