diff --git a/.github/workflows/shiftleft-analysis.yml b/.github/workflows/shiftleft-analysis.yml new file mode 100644 index 0000000..c0f051d --- /dev/null +++ b/.github/workflows/shiftleft-analysis.yml @@ -0,0 +1,29 @@ +name: ShiftLeft Scan + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + Scan-Build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Perform Scan + uses: ShiftLeftSecurity/scan-action@master + env: + WORKSPACE: "" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SCAN_AUTO_BUILD: true + with: + output: reports + + - name: Upload Report + uses: github/codeql-action/upload-sarif@v3 + with: + sarif_file: reports