File tree 6 files changed +59
-6
lines changed
6 files changed +59
-6
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,18 @@ jobs:
14
14
try-to-bump :
15
15
if : contains(github.event.pull_request.labels.*.name, 'bump-version')
16
16
runs-on : ubuntu-latest
17
+ permissions :
18
+ # Give the default GITHUB_TOKEN write permission to commit and push the
19
+ # added or changed files to the repository.
20
+ contents : write
21
+
17
22
steps :
18
23
- name : Checkout code
19
- uses : actions/checkout@v3
24
+ uses : actions/checkout@v4
20
25
with :
21
26
ref : ${{ github.head_ref }}
22
- persist-credentials : false
27
+ # note: this is needed by git-auto-commit-action below
28
+ persist-credentials : true
23
29
24
30
- name : check diff
25
31
id : check_diff
29
35
# fetch develop branch so that we can diff against later
30
36
git fetch origin develop
31
37
32
- echo 'checking verion changes in diff...'
38
+ echo 'checking version changes in diff...'
33
39
34
40
# check if version changed in version.go
35
41
# note: the grep will fail if use \d instead of [0-9]
59
65
run : node .github/scripts/bump_version_dot_go.mjs
60
66
61
67
# Commits made by this Action do not trigger new Workflow runs
62
- - uses : stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a
68
+ - uses : stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 # v5.1.0
63
69
if : steps.check_diff.outputs.result == 'bump'
64
70
with :
65
71
skip_fetch : true # already did fetch in check diff
Original file line number Diff line number Diff line change 11
11
jobs :
12
12
build-and-push-arm64-image :
13
13
runs-on : ubuntu-latest
14
+ permissions : {}
15
+
14
16
strategy :
15
17
matrix :
16
18
arch :
32
34
uses : docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 # v2.10.0
33
35
with :
34
36
cache-binary : false
37
+
35
38
- name : Login to Docker Hub
36
39
uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
37
40
with :
Original file line number Diff line number Diff line change 10
10
jobs :
11
11
build-and-push :
12
12
runs-on : ubuntu-latest
13
+ permissions : {}
14
+
13
15
steps :
14
16
- name : Checkout code
15
17
uses : actions/checkout@v2
Original file line number Diff line number Diff line change
1
+ name : CI
2
+
1
3
on :
2
4
push :
3
5
branches : # we keep this to avoid triggering `push` & `pull_request` every time we update a PR
11
13
- reopened
12
14
- synchronize
13
15
- ready_for_review
14
- name : CI
15
- jobs :
16
16
17
+ jobs :
17
18
build-mock-ccc-geth : # build geth with mock circuit capacity checker
18
19
if : github.event.pull_request.draft == false
19
20
runs-on : ubuntu-latest
21
+ permissions : {}
20
22
steps :
21
23
- name : Install Go
22
24
uses : actions/setup-go@v2
35
37
build-geth : # build geth with circuit capacity checker
36
38
if : github.event_name == 'push' # will only be triggered when pushing to main & staging & develop & alpha
37
39
runs-on : ubuntu-latest
40
+ permissions : {}
38
41
steps :
39
42
- name : Install Go
40
43
uses : actions/setup-go@v2
62
65
check :
63
66
if : github.event.pull_request.draft == false
64
67
runs-on : ubuntu-latest
68
+ permissions : {}
65
69
steps :
66
70
- name : Install Go
67
71
uses : actions/setup-go@v2
81
85
goimports-lint :
82
86
if : github.event.pull_request.draft == false
83
87
runs-on : ubuntu-latest
88
+ permissions : {}
84
89
steps :
85
90
- name : Install Go
86
91
uses : actions/setup-go@v2
@@ -107,6 +112,7 @@ jobs:
107
112
go-mod-tidy-lint :
108
113
if : github.event.pull_request.draft == false
109
114
runs-on : ubuntu-latest
115
+ permissions : {}
110
116
steps :
111
117
- name : Install Go
112
118
uses : actions/setup-go@v2
@@ -130,6 +136,7 @@ jobs:
130
136
test :
131
137
if : github.event.pull_request.draft == false
132
138
runs-on : ubuntu-latest
139
+ permissions : {}
133
140
steps :
134
141
- name : Install Go
135
142
uses : actions/setup-go@v2
Original file line number Diff line number Diff line change 15
15
semgrep :
16
16
name : semgrep/ci
17
17
runs-on : ubuntu-20.04
18
+ permissions : {}
18
19
env :
19
20
SEMGREP_APP_TOKEN : ${{ secrets.SEMGREP_APP_TOKEN }}
20
21
container :
Original file line number Diff line number Diff line change
1
+ name : zizmor GA Security Analysis
2
+
3
+ on :
4
+ push :
5
+ branches : ["develop"]
6
+ pull_request :
7
+ branches : ["**"]
8
+
9
+ jobs :
10
+ zizmor :
11
+ name : zizmor
12
+ runs-on : ubuntu-latest
13
+ permissions :
14
+ security-events : write
15
+
16
+ steps :
17
+ - name : Checkout repository
18
+ uses : actions/checkout@v4
19
+ with :
20
+ persist-credentials : false
21
+
22
+ - name : Install the latest version of uv
23
+ uses : astral-sh/setup-uv@f94ec6bedd8674c4426838e6b50417d36b6ab231 # v5.3.1
24
+
25
+ - name : Run zizmor
26
+ run : uvx zizmor --format sarif . > results.sarif
27
+ env :
28
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
+
30
+ - name : Upload SARIF file
31
+ uses : github/codeql-action/upload-sarif@v3
32
+ with :
33
+ sarif_file : results.sarif
34
+ category : zizmor
You can’t perform that action at this time.
0 commit comments