File tree 3 files changed +16
-7
lines changed
3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 5
5
tags : [ 'v*' ]
6
6
pull_request :
7
7
branches : [ master ]
8
-
8
+
9
9
env :
10
10
REGISTRY : ghcr.io
11
11
12
+ permissions :
13
+ contents : read
14
+ packages : write
15
+
12
16
jobs :
13
17
build :
14
18
runs-on : ubuntu-latest
@@ -18,23 +22,23 @@ jobs:
18
22
uses : actions/checkout@v4
19
23
20
24
- name : Set up Docker Buildx
21
- uses : docker/setup-buildx-action@v3
25
+ uses : docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349
22
26
23
27
- name : Log in to the Container registry
24
- uses : docker/login-action@v3
28
+ uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
25
29
with :
26
30
registry : ${{ env.REGISTRY }}
27
31
username : ${{ github.actor }}
28
32
password : ${{ secrets.GITHUB_TOKEN }}
29
33
30
34
- name : Get Docker Metadata
31
35
id : meta
32
- uses : docker/metadata-action@v5
36
+ uses : docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96
33
37
with :
34
38
images : ${{ env.REGISTRY }}/${{ github.repository }}
35
39
36
40
- name : Build Docker Image and Push to Container Registry
37
- uses : docker/build-push-action@v6
41
+ uses : docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355
38
42
with :
39
43
context : .
40
44
push : ${{ github.event_name != 'pull_request' }}
Original file line number Diff line number Diff line change 4
4
release :
5
5
types : [released]
6
6
7
+ permissions :
8
+ contents : read
9
+
7
10
jobs :
8
11
release :
9
12
runs-on : ubuntu-latest
10
13
steps :
11
14
- name : Checkout
12
15
uses : actions/checkout@v4
13
16
- name : Setup Ruby
14
- uses : ruby/setup-ruby@v1
17
+ uses : ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc
15
18
with :
16
19
ruby-version : " 3.3"
17
20
- name : Build gem
18
21
run : |
19
22
gem build github-pages.gemspec
20
23
- name : Publish gem
21
24
env :
22
- GEM_HOST_API_KEY : ${{ secrets.PAGES_GEM_PUBLISH }}
25
+ GEM_HOST_API_KEY : ${{ secrets.PAGES_GEM_PUBLISH }}
23
26
run : |
24
27
gem push github-pages-*.gem
Original file line number Diff line number Diff line change 1
1
on : push
2
2
name : cibuild on push
3
+ permissions :
4
+ contents : read
3
5
jobs :
4
6
build :
5
7
name : " GitHub Pages Tests"
You can’t perform that action at this time.
0 commit comments