refactor - changed script shell from bash to sh and improved logic #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: InferSharp | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
infer: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Infer# | |
uses: microsoft/[email protected] | |
id: runinfersharp | |
- name: Upload SARIF output to GitHub Security Center | |
uses: github/codeql-action/upload-sarif@v2 | |
if: success() && hashFiles('infer-out/report.sarif') != '' | |
with: | |
sarif_file: infer-out/report.sarif | |
continue-on-error: true |