Skip to content

Commit

Permalink
Separate GitHub workflow jobs (flutter#36127)
Browse files Browse the repository at this point in the history
* boringssl metadata for vuln scan

* update date, add owners test

* move unsupported actions into new job

* temp remove branch protection for test

* minor change

* fake change

* no branch check

* re-enable branch protection

* updates

* refactor further into generic setup
  • Loading branch information
sealesj authored Sep 14, 2022
1 parent 0f315f1 commit e4cb9d4
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/scorecards-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,43 @@ on:
permissions: read-all

jobs:
analysis:
name: Scorecards analysis
setup:
name: setup
runs-on: ubuntu-latest
if: ${{ github.repository == 'flutter/engine' }}
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
actions: read
contents: read
# Needed to access OIDC token.
id-token: write

steps:
- name: "Checkout code"
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
with:
persist-credentials: false

- name: setup python
vuln-scan:
name: Vulnerability scanning
runs-on: ubuntu-latest
needs: setup
if: ${{ github.repository == 'flutter/engine' }}
steps:
- name: "setup python"
uses: actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5
with:
python-version: '3.7.7' # install the python version needed

- name: execute py script
- name: "execute py script"
run: python ci/deps_parser.py

scorecards:
name: Scorecards analysis
needs: setup
runs-on: ubuntu-latest
if: ${{ github.repository == 'flutter/engine' }}
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
actions: read
contents: read
# Needed to access OIDC token.
id-token: write

steps:
- name: "Run analysis"
uses: ossf/scorecard-action@865b4092859256271290c77adbd10a43f4779972
with:
Expand Down

0 comments on commit e4cb9d4

Please sign in to comment.