File tree Expand file tree Collapse file tree 5 files changed +53
-14
lines changed Expand file tree Collapse file tree 5 files changed +53
-14
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ concurrency:
4
4
group : ${{ github.workflow }}-${{ github.ref }}
5
5
cancel-in-progress : true
6
6
7
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
8
+ permissions :
9
+ contents : read
10
+
7
11
on :
8
12
push :
9
13
branches :
@@ -135,6 +139,9 @@ jobs:
135
139
136
140
release :
137
141
runs-on : ubuntu-latest
142
+ permissions :
143
+ # required to create GitHub release
144
+ contents : write
138
145
needs :
139
146
- artifact
140
147
- test
@@ -175,6 +182,11 @@ jobs:
175
182
176
183
image :
177
184
runs-on : ubuntu-latest
185
+ permissions :
186
+ # same as global permissions
187
+ contents : read
188
+ # required to push to GHCR
189
+ packages : write
178
190
needs :
179
191
- artifact
180
192
- test
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ concurrency:
4
4
group : ${{ github.workflow }}-${{ github.ref }}
5
5
cancel-in-progress : true
6
6
7
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
8
+ permissions :
9
+ contents : read
10
+
7
11
on :
8
12
schedule :
9
13
- cron : ' 0 12 * * 6'
17
21
jobs :
18
22
codeql :
19
23
runs-on : ubuntu-latest
24
+ permissions :
25
+ # same as global permissions
26
+ contents : read
27
+ # required for code scanning
28
+ security-events : write
20
29
steps :
21
30
-
22
31
name : Checkout
Original file line number Diff line number Diff line change @@ -4,21 +4,36 @@ concurrency:
4
4
group : ${{ github.workflow }}-${{ github.ref }}
5
5
cancel-in-progress : true
6
6
7
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
8
+ permissions :
9
+ contents : read
10
+
7
11
on :
8
12
push :
9
13
branches :
10
14
- ' master'
11
15
paths :
12
16
- ' .github/labels.yml'
13
17
- ' .github/workflows/labels.yml'
18
+ pull_request :
19
+ paths :
20
+ - ' .github/labels.yml'
21
+ - ' .github/workflows/labels.yml'
14
22
15
23
jobs :
16
24
labeler :
17
25
runs-on : ubuntu-latest
26
+ permissions :
27
+ # same as global permissions
28
+ contents : read
29
+ # required to update labels
30
+ issues : write
18
31
steps :
19
32
-
20
33
name : Checkout
21
34
uses : actions/checkout@v4
22
35
-
23
36
name : Run Labeler
24
37
uses : crazy-max/ghaction-github-labeler@v5
38
+ with :
39
+ dry-run : ${{ github.event_name == 'pull_request' }}
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ concurrency:
4
4
group : ${{ github.workflow }}-${{ github.ref }}
5
5
cancel-in-progress : true
6
6
7
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
8
+ permissions :
9
+ contents : read
10
+
7
11
on :
8
12
push :
9
13
branches :
Original file line number Diff line number Diff line change @@ -92,20 +92,19 @@ yasu nobody true
92
92
Following platforms for this image are available:
93
93
94
94
```
95
- $ docker run --rm mplatform/mquery crazymax/yasu:latest
96
- Image: crazymax/yasu:latest
97
- * Manifest List: Yes
98
- * Supported platforms:
99
- - linux/386
100
- - linux/amd64
101
- - linux/arm/v5
102
- - linux/arm/v6
103
- - linux/arm/v7
104
- - linux/arm64
105
- - linux/mips64le
106
- - linux/ppc64le
107
- - linux/riscv64
108
- - linux/s390x
95
+ $ docker buildx imagetools inspect crazymax/yasu --format "{{json .Manifest}}" | \
96
+ jq -r '.manifests[] | select(.platform.os != null and .platform.os != "unknown") | .platform | "\(.os)/\(.architecture)\(if .variant then "/" + .variant else "" end)"'
97
+
98
+ linux/386
99
+ linux/amd64
100
+ linux/arm/v5
101
+ linux/arm/v6
102
+ linux/arm/v7
103
+ linux/arm64
104
+ linux/mips64le
105
+ linux/ppc64le
106
+ linux/riscv64
107
+ linux/s390x
109
108
```
110
109
111
110
Here is how to use ` yasu ` inside your Dockerfile:
You can’t perform that action at this time.
0 commit comments