diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 38e395114..605f31ea2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,7 +3,13 @@ version: 2 updates: -- package-ecosystem: "github-actions" - directory: "/" +- package-ecosystem: github-actions + directory: / schedule: - interval: "monthly" + interval: monthly + labels: + - autosubmit + groups: + github-actions: + patterns: + - "*" diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 0a7fbb775..51b5903ea 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -28,12 +28,12 @@ jobs: os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 with: sdk: stable - id: checkout name: Checkout repository - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - name: mono_repo self validate run: dart pub global activate mono_repo 6.5.7 - name: mono_repo self validate @@ -53,12 +53,12 @@ jobs: os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 with: sdk: "2.19.0" - id: checkout name: Checkout repository - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - id: protobuf_pub_upgrade name: protobuf; dart pub upgrade run: dart pub upgrade @@ -87,12 +87,12 @@ jobs: os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 with: sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - id: api_benchmark_pub_upgrade name: api_benchmark; dart pub upgrade run: dart pub upgrade @@ -129,12 +129,12 @@ jobs: os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 with: sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - id: benchmarks_pub_upgrade name: benchmarks; dart pub upgrade run: dart pub upgrade @@ -171,12 +171,12 @@ jobs: os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 with: sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - id: protobuf_pub_upgrade name: protobuf; dart pub upgrade run: dart pub upgrade @@ -205,12 +205,12 @@ jobs: os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 with: sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - id: protoc_plugin_pub_upgrade name: protoc_plugin; dart pub upgrade run: dart pub upgrade @@ -247,12 +247,12 @@ jobs: os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 with: sdk: "2.19.0" - id: checkout name: Checkout repository - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - id: protobuf_pub_upgrade name: protobuf; dart pub upgrade run: dart pub upgrade @@ -284,12 +284,12 @@ jobs: os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 with: sdk: "2.19.0" - id: checkout name: Checkout repository - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - id: protoc_plugin_pub_upgrade name: protoc_plugin; dart pub upgrade run: dart pub upgrade @@ -329,12 +329,12 @@ jobs: os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 with: sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - id: protobuf_pub_upgrade name: protobuf; dart pub upgrade run: dart pub upgrade @@ -366,12 +366,12 @@ jobs: os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 with: sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - id: protoc_plugin_pub_upgrade name: protoc_plugin; dart pub upgrade run: dart pub upgrade @@ -411,12 +411,12 @@ jobs: os:macos-latest;pub-cache-hosted os:macos-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 with: sdk: "2.19.0" - id: checkout name: Checkout repository - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - id: protobuf_pub_upgrade name: protobuf; dart pub upgrade run: dart pub upgrade @@ -448,12 +448,12 @@ jobs: os:macos-latest;pub-cache-hosted os:macos-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 with: sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - id: protobuf_pub_upgrade name: protobuf; dart pub upgrade run: dart pub upgrade @@ -475,12 +475,12 @@ jobs: runs-on: windows-latest steps: - name: Setup Dart SDK - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 with: sdk: "2.19.0" - id: checkout name: Checkout repository - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - id: protobuf_pub_upgrade name: protobuf; dart pub upgrade run: dart pub upgrade @@ -502,12 +502,12 @@ jobs: runs-on: windows-latest steps: - name: Setup Dart SDK - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 with: sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - id: protobuf_pub_upgrade name: protobuf; dart pub upgrade run: dart pub upgrade @@ -539,12 +539,12 @@ jobs: os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 with: sdk: "2.19.0" - id: checkout name: Checkout repository - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - id: protoc_plugin_pub_upgrade name: protoc_plugin; dart pub upgrade run: dart pub upgrade diff --git a/.github/workflows/no-response.yml b/.github/workflows/no-response.yml new file mode 100644 index 000000000..9cd84a5d2 --- /dev/null +++ b/.github/workflows/no-response.yml @@ -0,0 +1,37 @@ +# A workflow to close issues where the author hasn't responded to a request for +# more information; see https://github.com/actions/stale. + +name: No Response + +# Run as a daily cron. +on: + schedule: + # Every day at 8am + - cron: '0 8 * * *' + +# All permissions not specified are set to 'none'. +permissions: + issues: write + pull-requests: write + +jobs: + no-response: + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'google' }} + steps: + - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e + with: + # Don't automatically mark inactive issues+PRs as stale. + days-before-stale: -1 + # Close needs-info issues and PRs after 14 days of inactivity. + days-before-close: 14 + stale-issue-label: "needs-info" + close-issue-message: > + Without additional information we're not able to resolve this issue. + Feel free to add more info or respond to any questions above and we + can reopen the case. Thanks for your contribution! + stale-pr-label: "needs-info" + close-pr-message: > + Without additional information we're not able to resolve this PR. + Feel free to add more info or respond to any questions above. + Thanks for your contribution! diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 6706b071b..afff618d2 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -3,18 +3,15 @@ name: Publish on: - # Trigger on pull requests that target the default branch. pull_request: branches: [ master ] - types: [opened, synchronize, reopened, labeled, unlabeled] - # Also, trigger when tags are pushed to the repo. push: - tags: [ '[A-z]+-v[0-9]+.[0-9]+.[0-9]+*' ] + tags: [ '[A-z]+-v[0-9]+.[0-9]+.[0-9]+' ] -# The script below will perform publishing checks (version checks, publishing -# dry run, ...) when run on a PR, and perform an actual pub publish when run as -# a result of a git tag event. jobs: publish: if: ${{ github.repository_owner == 'google' }} uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main + permissions: + id-token: write # Required for authentication using OIDC + pull-requests: write # Required for writing the pull request note