mirror of
https://github.com/flutter/packages.git
synced 2025-06-28 22:02:38 +08:00
Run scorecards only on pushes to main. (#2546)
* Run scorecards only on pushes to main. This is to prevent the workflow from failing when running in branches with no previous data to compare. It also adds the scorecard badge to the README file. * Add timeout and run_if to ci_yaml_roller.
This commit is contained in:
3
.ci.yaml
3
.ci.yaml
@ -76,3 +76,6 @@ targets:
|
||||
|
||||
- name: Linux ci_yaml packages roller
|
||||
recipe: infra/ci_yaml
|
||||
timeout: 30
|
||||
runIf:
|
||||
- .ci.yaml
|
||||
|
5
.github/workflows/scorecards-analysis.yml
vendored
5
.github/workflows/scorecards-analysis.yml
vendored
@ -1,9 +1,8 @@
|
||||
name: Scorecards supply-chain security
|
||||
on:
|
||||
# Only the default branch is supported.
|
||||
branch_protection_rule:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches:
|
||||
- main
|
||||
|
||||
# Declare default permissions as read only.
|
||||
permissions: read-all
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
[](https://cirrus-ci.com/github/flutter/packages/main)
|
||||
[](https://github.com/flutter/packages/actions/workflows/release.yml)
|
||||
|
||||
[]
|
||||
This repo is a companion repo to the main [flutter repo](
|
||||
https://github.com/flutter/flutter). It contains the source code for Flutter's
|
||||
first-party packages (i.e., packages developed by the core Flutter team).
|
||||
|
Reference in New Issue
Block a user