|
| 1 | +# This workflow uses actions that are not certified by GitHub. |
| 2 | +# They are provided by a third-party and are governed by |
| 3 | +# separate terms of service, privacy policy, and support |
| 4 | +# documentation. |
| 5 | +# clj-watson scans dependencies in a clojure deps.edn |
| 6 | +# seeking for vulnerable direct/transitive dependencies and |
| 7 | +# build a report with all the information needed to help you |
| 8 | +# understand how the vulnerability manifest in your software. |
| 9 | +# More details at https://github.com/clj-holmes/clj-watson |
| 10 | + |
| 11 | +name: clj-watson |
| 12 | + |
| 13 | +on: |
| 14 | + push: |
| 15 | + branches: [ "main" ] |
| 16 | + pull_request: |
| 17 | + # The branches below must be a subset of the branches above |
| 18 | + branches: [ "main" ] |
| 19 | + schedule: |
| 20 | + - cron: '16 11 * * 0' |
| 21 | + |
| 22 | +permissions: |
| 23 | + contents: read |
| 24 | + |
| 25 | +jobs: |
| 26 | + clj-holmes: |
| 27 | + name: Run clj-watson scanning |
| 28 | + runs-on: ubuntu-latest |
| 29 | + permissions: |
| 30 | + contents: read |
| 31 | + security-events: write |
| 32 | + actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status |
| 33 | + steps: |
| 34 | + - name: Checkout code |
| 35 | + uses: actions/checkout@v2 |
| 36 | + |
| 37 | + - name: Dependency scan |
| 38 | + uses: clj-holmes/clj-watson-action@39b8ed306f2c125860cf6e69b6939363689f998c |
| 39 | + with: |
| 40 | + clj-watson-sha: "65d928c" |
| 41 | + clj-watson-tag: "v4.0.1" |
| 42 | + database-strategy: github-advisory |
| 43 | + aliases: clojure-lsp,test |
| 44 | + deps-edn-path: deps.edn |
| 45 | + suggest-fix: true |
| 46 | + output-type: sarif |
| 47 | + output-file: clj-watson-results.sarif |
| 48 | + fail-on-result: false |
| 49 | + |
| 50 | + - name: Upload analysis results to GitHub |
| 51 | + uses: github/codeql-action/upload-sarif@v3 |
| 52 | + with: |
| 53 | + sarif_file: ${{github.workspace}}/clj-watson-results.sarif |
| 54 | + wait-for-processing: true |
0 commit comments