From b25c4dd413cea717bce6a0435d006f3ca6548603 Mon Sep 17 00:00:00 2001 From: Awei <62026905+Awei2020@users.noreply.github.com> Date: Tue, 18 Jul 2023 15:34:06 +0800 Subject: [PATCH] Update action.yml --- action.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/action.yml b/action.yml index c47eb61..fa2396c 100644 --- a/action.yml +++ b/action.yml @@ -16,3 +16,10 @@ runs: shell: bash - run: wget https://s.murphysec.com/github_actions_format.py && python3 github_actions_format.py shell: bash + - run: if [ -f "results.sarif" ]; then echo "file_exists=true" >> $GITHUB_ENV; else echo "file_exists=false" >> $GITHUB_ENV; fi + shell: bash + - name: Upload SARIF file + if: env.file_exists == 'true' + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: results.sarif