Separate GitHub workflow jobs (flutter/engine#36152)
* 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 * remove setup stage * no more needs
This commit is contained in:
@@ -9,8 +9,8 @@ on:
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
setup:
|
||||
name: setup
|
||||
vuln-scan:
|
||||
name: Vulnerability scanning
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.repository == 'flutter/engine' }}
|
||||
steps:
|
||||
@@ -18,13 +18,6 @@ jobs:
|
||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
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:
|
||||
@@ -34,7 +27,6 @@ jobs:
|
||||
|
||||
scorecards:
|
||||
name: Scorecards analysis
|
||||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.repository == 'flutter/engine' }}
|
||||
permissions:
|
||||
@@ -44,8 +36,11 @@ jobs:
|
||||
contents: read
|
||||
# Needed to access OIDC token.
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: "Checkout code"
|
||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: "Run analysis"
|
||||
uses: ossf/scorecard-action@865b4092859256271290c77adbd10a43f4779972
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user