From db8bdc037860e0eb88efa2d4d25fc00e304c939a Mon Sep 17 00:00:00 2001 From: Jeff Peiffer Date: Mon, 27 May 2024 14:49:08 -0400 Subject: [PATCH] Workflows --- .github/workflows/pull_request.yml | 6 ------ example/pubspec.yaml | 25 +++++++++++++++++++++++++ pubspec.yaml | 25 +++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index b9d6625..b8f09a9 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -5,12 +5,6 @@ on: pull_request: branches: [main] -permissions: - # Only need to read contents - contents: read - # Require writing security events to upload SARIF file to security tab - security-events: write - jobs: build: runs-on: ubuntu-latest diff --git a/example/pubspec.yaml b/example/pubspec.yaml index db7c9ad..0ac8f7a 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -25,6 +25,31 @@ flutter: - 'assets/pages/' - 'assets/rives/' +permittedLicenses: + - Apache-2.0 + - BSD-2-Clause + - BSD-3-Clause + - MIT + - MIT-Modern-Variant + - MPL-2.0 + - Zlib + +# The [license_checker](https://pub.dev/packages/license_checker) package cannot +# detect the built in Flutter packages because they aren't published to pub.dev +# and do not have a LICENSE file in their respective folders. So this section +# informs the license_checker that all the built in Flutter packages all have +# the same BSD-3-Clause license as Flutter itself. +packageLicenseOverride: + flutter: BSD-3-Clause + flutter_driver: BSD-3-Clause + flutter_goldens: BSD-3-Clause + flutter_localizations: BSD-3-Clause + flutter_web_plugins: BSD-3-Clause + flutter_test: BSD-3-Clause + fuchsia_remote_debug_protocol: BSD-3-Clause + integration_test: BSD-3-Clause + rxdart: Apache-2.0 + ignore_updates: - 'archive' - 'async' diff --git a/pubspec.yaml b/pubspec.yaml index 4ecb4e9..1194d87 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -32,6 +32,31 @@ dev_dependencies: sdk: 'flutter' json_dynamic_widget_codegen: '^1.0.1+1' +permittedLicenses: + - Apache-2.0 + - BSD-2-Clause + - BSD-3-Clause + - MIT + - MIT-Modern-Variant + - MPL-2.0 + - Zlib + +# The [license_checker](https://pub.dev/packages/license_checker) package cannot +# detect the built in Flutter packages because they aren't published to pub.dev +# and do not have a LICENSE file in their respective folders. So this section +# informs the license_checker that all the built in Flutter packages all have +# the same BSD-3-Clause license as Flutter itself. +packageLicenseOverride: + flutter: BSD-3-Clause + flutter_driver: BSD-3-Clause + flutter_goldens: BSD-3-Clause + flutter_localizations: BSD-3-Clause + flutter_web_plugins: BSD-3-Clause + flutter_test: BSD-3-Clause + fuchsia_remote_debug_protocol: BSD-3-Clause + integration_test: BSD-3-Clause + rxdart: Apache-2.0 + ignore_updates: - 'archive' - 'async'