OpenSSF: Run on main and PR's
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
This commit is contained in:
parent
6237aba7c4
commit
19b4cb2f48
|
@ -2,10 +2,7 @@
|
||||||
|
|
||||||
name: Scorecards supply-chain security
|
name: Scorecards supply-chain security
|
||||||
on:
|
on:
|
||||||
# Only the default branch is supported.
|
pull_request:
|
||||||
branch_protection_rule:
|
|
||||||
schedule:
|
|
||||||
- cron: '25 18 * * 5'
|
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
@ -29,13 +26,13 @@ jobs:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: "Run analysis"
|
- name: "Run analysis"
|
||||||
uses: ossf/scorecard-action@865b4092859256271290c77adbd10a43f4779972 # tag=v2.0.3
|
uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031 # tag=v2.2.0
|
||||||
with:
|
with:
|
||||||
results_file: results.sarif
|
results_file: results.sarif
|
||||||
results_format: sarif
|
results_format: sarif
|
||||||
# Publish the results for public repositories to enable scorecard badges. For more details, see
|
# Publish the results for public repositories to enable scorecard badges. For more details, see
|
||||||
# https://github.com/ossf/scorecard-action#publishing-results.
|
# https://github.com/ossf/scorecard-action#publishing-results.
|
||||||
publish_results: true
|
publish_results: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|
||||||
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
|
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
|
||||||
# format to the repository Actions tab.
|
# format to the repository Actions tab.
|
||||||
|
|
Loading…
Reference in New Issue