Skip to content

Commit 44ddd98

Browse files
feat: added subscription check
1 parent 94c939c commit 44ddd98

8 files changed

Lines changed: 37 additions & 97 deletions

File tree

‎.github/FUNDING.yaml‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎.github/ISSUE_TEMPLATE/enforce-sha-pinning.md‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎.github/workflows/audit_package.yml‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

‎.github/workflows/workflow.yaml‎

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
push:
66
branches:
77
- main
8-
- dev
98
pull_request:
109
paths:
1110
- setup.sh
@@ -17,32 +16,26 @@ jobs:
1716

1817
steps:
1918
- name: Clone repository
20-
uses: actions/checkout@v6
19+
uses: actions/checkout@v7
2120
- name: Run shellcheck
22-
uses: ludeeus/action-shellcheck@master
21+
uses: step-security/action-shellcheck@v2
2322

2423
test_channel:
2524
runs-on: ${{ matrix.operating-system }}
2625

2726
strategy:
2827
matrix:
29-
operating-system:
30-
- ubuntu-latest
31-
- windows-latest
32-
- macos-latest
33-
channel: [stable, beta, master]
34-
dry-run: [true, false]
35-
git-source:
36-
- https://github.com/flutter/flutter.git
37-
- https://github.com/Flutter-Foundation/flutter.git
38-
- https://gitee.com/harmonycommando_flutter/flutter.git
28+
operating-system: ${{ github.actor == 'dependabot[bot]' && fromJSON('["ubuntu-latest"]') || fromJSON('["ubuntu-latest", "macos-latest", "windows-latest"]') }}
29+
channel: ${{ github.actor == 'dependabot[bot]' && fromJSON('["stable"]') || fromJSON('["stable", "beta", "master"]') }}
30+
dry-run: ${{ github.actor == 'dependabot[bot]' && fromJSON('[false]') || fromJSON('[true, false]') }}
31+
git-source: ${{ github.actor == 'dependabot[bot]' && fromJSON('["https://github.com/flutter/flutter.git"]') || fromJSON('["https://github.com/flutter/flutter.git", "https://github.com/Flutter-Foundation/flutter.git", "https://gitee.com/harmonycommando_flutter/flutter.git"]') }}
3932
include:
4033
- operating-system: ubuntu-latest
4134
channel: main
4235

4336
steps:
4437
- name: Clone repository
45-
uses: actions/checkout@v6
38+
uses: actions/checkout@v7
4639
- id: flutter-action
4740
uses: ./
4841
with:
@@ -78,12 +71,11 @@ jobs:
7871

7972
strategy:
8073
matrix:
81-
operating-system:
82-
[ubuntu-latest, windows-latest, macos-latest]
74+
operating-system: ${{ github.actor == 'dependabot[bot]' && fromJSON('["ubuntu-latest"]') || fromJSON('["ubuntu-latest", "windows-latest", "macos-latest"]') }}
8375

8476
steps:
8577
- name: Clone repository
86-
uses: actions/checkout@v6
78+
uses: actions/checkout@v7
8779
- uses: ./
8880
with:
8981
channel: stable
@@ -99,11 +91,11 @@ jobs:
9991

10092
strategy:
10193
matrix:
102-
operating-system: [ubuntu-latest]
94+
operating-system: ${{ github.actor == 'dependabot[bot]' && fromJSON('["ubuntu-latest"]') || fromJSON('["ubuntu-latest"]') }}
10395

10496
steps:
10597
- name: Clone repository
106-
uses: actions/checkout@v6
98+
uses: actions/checkout@v7
10799
- uses: ./
108100
with:
109101
channel: stable
@@ -120,11 +112,11 @@ jobs:
120112

121113
strategy:
122114
matrix:
123-
operating-system: [ubuntu-latest, macos-latest]
115+
operating-system: ${{ github.actor == 'dependabot[bot]' && fromJSON('["ubuntu-latest"]') || fromJSON('["ubuntu-latest", "macos-latest"]') }}
124116

125117
steps:
126118
- name: Clone repository
127-
uses: actions/checkout@v6
119+
uses: actions/checkout@v7
128120
- id: flutter-action
129121
uses: ./
130122
with:
@@ -152,7 +144,7 @@ jobs:
152144

153145
steps:
154146
- name: Clone repository
155-
uses: actions/checkout@v6
147+
uses: actions/checkout@v7
156148
- run: ./setup.sh -t -p -f test/pubspec.yaml | grep '3.3.10'
157149
shell: bash
158150
- run: ./setup.sh -t -p | grep 'stable'
@@ -242,14 +234,15 @@ jobs:
242234

243235

244236
test_print_output_arm64:
237+
if: github.actor != 'dependabot[bot]'
245238
runs-on: macos-latest
246239

247240
# These calls to setup.sh sepcify the -t flag, which enables test mode.
248241
# Test mode uses hardcoded Flutter release manifests from test/ directory.
249242

250243
steps:
251244
- name: Clone repository
252-
uses: actions/checkout@v6
245+
uses: actions/checkout@v7
253246
- run: ./setup.sh -t -p -f test/pubspec.yaml | grep '3.3.10'
254247
shell: bash
255248
- run: ./setup.sh -t -p | grep 'stable'

‎LICENSE‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
The MIT License (MIT)
22

3+
Copyright (c) 2019 Alif Rachmawadi <arch@subosito.com>
34
Copyright (c) 2026 StepSecurity
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy

‎README.md‎

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
Flutter environment for use in GitHub Actions.
66
It works on Linux, Windows, and macOS.
77

8-
Originally created by [Alif Rachmawadi]. Maintained by [Bartek Pacia].
9-
108
The following sections show how to configure this action.
119

1210
## Specifying Flutter version
@@ -16,7 +14,7 @@ The following sections show how to configure this action.
1614
```yaml
1715
steps:
1816
- name: Clone repository
19-
uses: actions/checkout@v6
17+
uses: actions/checkout@v7
2018
- name: Set up Flutter
2119
uses: step-security/flutter-action@v2
2220
with:
@@ -32,7 +30,7 @@ This is inspired by [`actions/setup-go`](https://github.com/actions/setup-go).
3230
```yaml
3331
steps:
3432
- name: Clone repository
35-
uses: actions/checkout@v6
33+
uses: actions/checkout@v7
3634
- name: Set up Flutter
3735
uses: step-security/flutter-action@v2
3836
with:
@@ -74,7 +72,7 @@ steps:
7472
```yaml
7573
steps:
7674
- name: Clone repository
77-
uses: actions/checkout@v6
75+
uses: actions/checkout@v7
7876
- name: Set up Flutter
7977
uses: step-security/flutter-action@v2
8078
with:
@@ -87,7 +85,7 @@ steps:
8785
```yaml
8886
steps:
8987
- name: Clone repository
90-
uses: actions/checkout@v6
88+
uses: actions/checkout@v7
9189
- name: Set up Flutter
9290
uses: step-security/flutter-action@v2
9391
with:
@@ -101,7 +99,7 @@ steps:
10199
```yaml
102100
steps:
103101
- name: Clone repository
104-
uses: actions/checkout@v6
102+
uses: actions/checkout@v7
105103
- name: Set up Flutter
106104
uses: step-security/flutter-action@v2
107105
with:
@@ -115,7 +113,7 @@ steps:
115113
```yaml
116114
steps:
117115
- name: Clone repository
118-
uses: actions/checkout@v6
116+
uses: actions/checkout@v7
119117
- name: Set up Flutter
120118
uses: step-security/flutter-action@v2
121119
with:
@@ -131,7 +129,7 @@ You can get more infomation from [Flutter official docs](https://docs.flutter.de
131129
```yaml
132130
steps:
133131
- name: Clone repository
134-
uses: actions/checkout@v6
132+
uses: actions/checkout@v7
135133
- name: Set up Flutter
136134
env:
137135
FLUTTER_STORAGE_BASE_URL: https://storage.flutter-io.cn
@@ -152,7 +150,7 @@ This action supports "alternative Flutters" in addition to the official
152150
```yaml
153151
steps:
154152
- name: Clone repository
155-
uses: actions/checkout@v6
153+
uses: actions/checkout@v7
156154
- name: Set up Flutter
157155
uses: step-security/flutter-action@v2
158156
with:
@@ -173,7 +171,7 @@ You can apply your patch like this:
173171
```yaml
174172
steps:
175173
- name: Clone repository
176-
uses: actions/checkout@v6
174+
uses: actions/checkout@v7
177175
- uses: step-security/flutter-action@v2
178176
with:
179177
flutter-version: 3.22.2
@@ -185,18 +183,14 @@ steps:
185183
git status
186184
```
187185

188-
> [!NOTE]
189-
>
190-
> This was first discussed in [this issue](https://github.com/step-security/flutter-action/issues/310).
191-
192186
## Build targets
193187

194188
Build **Android** APK and app bundle:
195189

196190
```yaml
197191
steps:
198192
- name: Clone repository
199-
uses: actions/checkout@v6
193+
uses: actions/checkout@v7
200194
- name: Set up Flutter
201195
uses: step-security/flutter-action@v2
202196
with:
@@ -219,7 +213,7 @@ jobs:
219213
runs-on: macos-latest
220214
steps:
221215
- name: Clone repository
222-
uses: actions/checkout@v6
216+
uses: actions/checkout@v7
223217
- name: Set up Flutter
224218
uses: step-security/flutter-action@v2
225219
with:
@@ -234,7 +228,7 @@ jobs:
234228
```yaml
235229
steps:
236230
- name: Clone repository
237-
uses: actions/checkout@v6
231+
uses: actions/checkout@v7
238232
- name: Set up Flutter
239233
uses: step-security/flutter-action@v2
240234
with:
@@ -252,7 +246,7 @@ jobs:
252246
runs-on: windows-latest
253247
steps:
254248
- name: Clone repository
255-
uses: actions/checkout@v6
249+
uses: actions/checkout@v7
256250
- name: Set up Flutter
257251
uses: step-security/flutter-action@v2
258252
with:
@@ -268,7 +262,7 @@ jobs:
268262
runs-on: ubuntu-latest
269263
steps:
270264
- name: Clone repository
271-
uses: actions/checkout@v6
265+
uses: actions/checkout@v7
272266
- name: Set up Flutter
273267
uses: step-security/flutter-action@v2
274268
with:
@@ -291,7 +285,7 @@ jobs:
291285
runs-on: macos-latest
292286
steps:
293287
- name: Clone repository
294-
uses: actions/checkout@v6
288+
uses: actions/checkout@v7
295289
- name: Set up Flutter
296290
uses: step-security/flutter-action@v2
297291
with:
@@ -311,7 +305,7 @@ Integration with [`actions/cache`](https://github.com/actions/cache):
311305
```yaml
312306
steps:
313307
- name: Clone repository
314-
uses: actions/checkout@v6
308+
uses: actions/checkout@v7
315309
- name: Set up Flutter
316310
uses: step-security/flutter-action@v2
317311
with:
@@ -365,7 +359,7 @@ Example usage (inspired by [actions/cache@v5](https://github.com/actions/cache/b
365359
```yaml
366360
steps:
367361
- name: Checkout repository
368-
uses: actions/checkout@v6
362+
uses: actions/checkout@v7
369363
370364
- name: Set up Flutter
371365
uses: step-security/flutter-action@v2
@@ -389,7 +383,7 @@ Use outputs from `flutter-action`:
389383
```yaml
390384
steps:
391385
- name: Clone repository
392-
- uses: actions/checkout@v6
386+
- uses: actions/checkout@v7
393387
- name: Set up Flutter
394388
uses: step-security/flutter-action@v2
395389
id: flutter-action
@@ -415,7 +409,7 @@ If you don't need to install Flutter and just want the outputs, you can use the
415409
```yaml
416410
steps:
417411
- name: Clone repository
418-
- uses: actions/checkout@v6
412+
- uses: actions/checkout@v7
419413
- name: Set up Flutter
420414
uses: step-security/flutter-action@v2
421415
id: flutter-action
@@ -435,5 +429,3 @@ steps:
435429
shell: bash
436430
```
437431

438-
[Alif Rachmawadi]: https://github.com/subosito
439-
[Bartek Pacia]: https://github.com/bartekpacia

‎action.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Set up Flutter
22
description: Setup your runner with Flutter environment
3-
author: Alif Rachmawadi
3+
author: 'step-security'
44
branding:
55
icon: maximize
66
color: blue

0 commit comments

Comments
 (0)