Skip to content

Commit

Permalink
Remove schedule runs of scorecards. (flutter#38)
Browse files Browse the repository at this point in the history
This will also add dependabot to auto update the workflows dependencies.

Bug: flutter#99185
  • Loading branch information
godofredoc authored and dnfield committed Apr 27, 2022
1 parent 0dae5ad commit e1a9ae8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
16 changes: 16 additions & 0 deletions impeller/.github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# See Dependabot documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
reviewers:
- "hixie"
- "godofredoc"
labels:
- "team"
- "team: infra"
- "waiting for tree to go green"
10 changes: 4 additions & 6 deletions impeller/.github/workflows/scorecards-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Scorecards supply-chain security
on:
# Only the default branch is supported.
branch_protection_rule:
schedule:
- cron: '37 18 * * 2'
push:
branches: [ main ]

Expand All @@ -22,12 +20,12 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@b614d455ee90608b5e36e3299cd50d457eb37d5f # v1.0.3
uses: ossf/scorecard-action@b614d455ee90608b5e36e3299cd50d457eb37d5f
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -42,14 +40,14 @@ jobs:

# Upload the results as artifacts (optional).
- name: "Upload artifact"
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2.3.1
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2
with:
name: SARIF file
path: results.sarif
retention-days: 5

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5 # v1.0.26
uses: github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5
with:
sarif_file: results.sarif

0 comments on commit e1a9ae8

Please sign in to comment.