Skip to content

Commit

Permalink
[sync] 2024/08/06 (#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenglu authored Aug 6, 2024
2 parents 723f11f + b692fc2 commit a0ca697
Show file tree
Hide file tree
Showing 177 changed files with 2,175 additions and 542 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/scorecards-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Scorecards supply-chain security
on:
# Only the default branch is supported.
branch_protection_rule:
push:
branches: [ main ]

# Declare default permissions as read only.
permissions: read-all

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

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

- name: "Run analysis"
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46
with:
results_file: results.sarif
results_format: sarif
# Read-only PAT token. To create it,
# follow the steps in https://github.com/ossf/scorecard-action#pat-token-creation.
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
# Publish the results to enable scorecard badges. For more details, see
# https://github.com/ossf/scorecard-action#publishing-results.
# For private repositories, `publish_results` will automatically be set to `false`,
# regardless of the value entered here.
publish_results: true

# Upload the results as artifacts (optional).
- name: "Upload artifact"
uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029
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@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a
with:
sarif_file: results.sarif
2 changes: 1 addition & 1 deletion dash_site
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

REQUIRED_DART_VERSION="3.4"
REQUIRED_DART_VERSION="3.5"
REQUIRED_NODE_VERSION="20.12"
REQUIRED_PNPM_VERSION="9.0"

Expand Down
2 changes: 1 addition & 1 deletion examples/_animation/basic_hero_animation/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: >-
Shows how to create a simple or Hero animation using the Hero class directly.
environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >-
as it animates to the new route.
environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/_animation/basic_staggered_animation/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ publish_to: none
description: An introductory example to staggered animations.

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/_animation/hero_animation/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ publish_to: none
description: Shows how to create a simple Hero transition.

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/_animation/radial_hero_animation/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >-
as it animates to the new route.
environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >-
as it animates to the new route.
environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/_animation/staggered_pic_selection/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ publish_to: none
description: A more complex staggered animation example.

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
4 changes: 2 additions & 2 deletions examples/animation/animate0/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ description: >-
version: 1.0.0

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.6
cupertino_icons: ^1.0.8

dev_dependencies:
example_utils:
Expand Down
4 changes: 2 additions & 2 deletions examples/animation/animate1/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ description: >-
version: 1.0.0

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.6
cupertino_icons: ^1.0.8

dev_dependencies:
example_utils:
Expand Down
4 changes: 2 additions & 2 deletions examples/animation/animate2/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ description: >-
version: 1.0.0

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.6
cupertino_icons: ^1.0.8

dev_dependencies:
example_utils:
Expand Down
4 changes: 2 additions & 2 deletions examples/animation/animate3/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ description: >-
version: 1.0.0

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.6
cupertino_icons: ^1.0.8

dev_dependencies:
example_utils:
Expand Down
4 changes: 2 additions & 2 deletions examples/animation/animate4/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ description: >-
version: 1.0.0

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.6
cupertino_icons: ^1.0.8

dev_dependencies:
example_utils:
Expand Down
4 changes: 2 additions & 2 deletions examples/animation/animate5/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ description: >-
version: 1.0.0

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.6
cupertino_icons: ^1.0.8

dev_dependencies:
example_utils:
Expand Down
2 changes: 1 addition & 1 deletion examples/animation/implicit/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none
version: 1.0.0+1

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/basics/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Some code to demonstrate null safety.
version: 1.0.0

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: animated_container
description: Sample code for cookbook.

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/animation/opacity_animation/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: opacity_animation
description: Sample code for cookbook.

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: page_route_animation
description: Sample code for cookbook.

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: physics_simulation
description: Sample code for cookbook.

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/design/drawer/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: drawer
description: Sample code for drawer cookbook recipe.

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
4 changes: 2 additions & 2 deletions examples/cookbook/design/fonts/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ publish_to: none
version: 1.0.0+1

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.6
cupertino_icons: ^1.0.8

dev_dependencies:
example_utils:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/design/orientation/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: orientation
description: Sample code for orientation cookbook recipe.

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
4 changes: 2 additions & 2 deletions examples/cookbook/design/package_fonts/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ publish_to: none
version: 1.0.0+1

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.6
cupertino_icons: ^1.0.8

dev_dependencies:
example_utils:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/design/snackbars/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: snackbars
description: Sample code for snackbars cookbook recipe.

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/design/tabs/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: tabs
description: Sample code for tabs cookbook recipe.

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/design/themes/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: themes
description: Sample code for themes cookbook recipe.

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
Expand Down
4 changes: 2 additions & 2 deletions examples/cookbook/effects/download_button/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ publish_to: none
version: 1.0.0+1

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.6
cupertino_icons: ^1.0.8

dev_dependencies:
example_utils:
Expand Down
4 changes: 2 additions & 2 deletions examples/cookbook/effects/drag_a_widget/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ publish_to: none
version: 1.0.0+1

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.6
cupertino_icons: ^1.0.8

dev_dependencies:
example_utils:
Expand Down
4 changes: 2 additions & 2 deletions examples/cookbook/effects/expandable_fab/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ publish_to: none
version: 1.0.0+1

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.6
cupertino_icons: ^1.0.8

dev_dependencies:
example_utils:
Expand Down
Loading

0 comments on commit a0ca697

Please sign in to comment.