@@ -13,44 +13,44 @@ permissions: read-all
1313
1414jobs :
1515 extract-deps :
16- name : Extract Dependencies
16+ name : Extract dependencies
1717 runs-on : ' ubuntu-24.04'
1818 if : ${{ (github.repository == 'dart-lang/sdk' && github.event_name == 'push') || github.event.label.name == 'vulnerability scan' }}
1919 permissions :
20- # Needed to upload the SARIF results to code-scanning dashboard.
20+ # Needed to upload the SARIF results to the code-scanning dashboard.
2121 security-events : write
2222 contents : read
2323 steps :
2424 - name : " Checkout code"
2525 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2626 with :
2727 persist-credentials : false
28- - name : " setup python"
28+ - name : " Set up python"
2929 uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
3030 with :
31- python-version : ' 3.13.3' # install the python version needed
32- - name : " extract deps, find commit hash, pass to osv-scanner"
31+ python-version : ' 3.13.3' # Install the python version needed.
32+ - name : " Extract deps, find commit hash, pass to osv-scanner"
3333 run : python .github/extract_deps.py --output osv-lockfile-${{github.sha}}.json
34- - name : " upload osv-scanner deps"
34+ - name : " Upload osv-scanner deps"
3535 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
3636 with :
37- # use github.ref in name to avoid duplicated artifacts
37+ # Use github.ref in name to avoid duplicated artifacts.
3838 name : osv-lockfile-${{github.sha}}
3939 path : osv-lockfile-${{github.sha}}.json
4040 retention-days : 2
4141 vuln-scan :
4242 name : Vulnerability scanning
4343 needs :
4444 extract-deps
45- uses : " google/osv-scanner/.github/workflows/osv-scanner-reusable.yml@main"
45+ uses : " google/osv-scanner-action /.github/workflows/osv-scanner-reusable.yml@main"
4646 with :
47- # Download the artifact uploaded in extract-deps step
47+ # Download the artifact uploaded in the extract-deps step.
4848 download-artifact : osv-lockfile-${{github.sha}}
4949 scan-args : |-
5050 --lockfile=osv-scanner:osv-lockfile-${{github.sha}}.json
5151 fail-on-vuln : false
52- # makes sure the osv-formatted vulns are uploaded
52+ # Makes sure the osv-formatted vulns are uploaded.
5353 permissions :
54- # Needed to upload the SARIF results to code-scanning dashboard.
54+ # Needed to upload the SARIF results to the code-scanning dashboard.
5555 security-events : write
5656 contents : read
0 commit comments