File tree 6 files changed +55
-39
lines changed
6 files changed +55
-39
lines changed Original file line number Diff line number Diff line change 9
9
name : ' Dependency Review'
10
10
on : [pull_request]
11
11
12
- permissions :
13
- contents : read
12
+ permissions : {}
14
13
15
14
jobs :
16
15
dependency-review :
16
+ permissions :
17
+ contents : read
18
+
17
19
runs-on : ubuntu-latest
18
20
steps :
19
21
- name : Harden the runner (Audit all outbound calls)
23
25
24
26
- name : ' Checkout Repository'
25
27
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28
+ with :
29
+ persist-credentials : false
30
+
26
31
- name : ' Dependency Review'
27
32
uses : actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ name: Update data and open pull request
3
3
on :
4
4
schedule :
5
5
- cron : ' 0 18 * * 2'
6
+
6
7
workflow_dispatch :
7
8
8
- permissions :
9
- contents : read
9
+ permissions : {}
10
10
11
11
jobs :
12
12
update-definitions :
@@ -22,38 +22,20 @@ jobs:
22
22
with :
23
23
egress-policy : audit
24
24
25
- - id : is-scheduled
26
- env :
27
- EVENT_NAME : ${{ github.event_name }}
28
- run : |
29
- declare result
30
- declare -i dom
31
- dom="$(date +%d | sed 's/^0//')"
32
-
33
- [[ "${EVENT_NAME}" == workflow_dispatch ]] && result=yes
34
- ((dom <= 7)) && result=yes
35
- ((dom >= 14 && dom <= 21)) && result=yes
36
-
37
- echo "ok=${result}" >>"$GITHUB_OUTPUT"
38
-
39
25
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40
26
with :
41
27
persist-credentials : true
42
- if : steps.is-scheduled.outputs.ok
43
28
44
29
- uses : ruby/setup-ruby@277ba2a127aba66d45bad0fa2dc56f80dbfedffa # v1.222.0
45
- if : steps.is-scheduled.outputs.ok
46
30
with :
47
- ruby-version : ' 3.2 '
31
+ ruby-version : ' 3.3 '
48
32
rubygems : ' latest'
49
33
bundler : 2
50
34
bundler-cache : true
51
35
52
36
- run : bundle exec rake release:gha
53
- if : steps.is-scheduled.outputs.ok
54
37
55
38
- uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
56
- if : steps.is-scheduled.outputs.ok
57
39
with :
58
40
commit-message : |
59
41
${{ env.UPDATE_TITLE }}
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ name: Reviewdog
3
3
on :
4
4
pull_request :
5
5
6
- permissions :
7
- contents : read
6
+ permissions : {}
8
7
9
8
jobs :
10
9
typos :
@@ -17,10 +16,16 @@ jobs:
17
16
pull-requests : write
18
17
19
18
steps :
20
- - name : Harden the runner (Audit all outbound calls)
19
+ - name : Harden Runner
21
20
uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
22
21
with :
23
- egress-policy : audit
22
+ disable-sudo : true
23
+ egress-policy : block
24
+ allowed-endpoints : >
25
+ api.github.com:443
26
+ github.com:443
27
+ objects.githubusercontent.com:443
28
+ raw.githubusercontent.com:443
24
29
25
30
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26
31
with :
@@ -38,10 +43,14 @@ jobs:
38
43
pull-requests : write
39
44
40
45
steps :
41
- - name : Harden the runner (Audit all outbound calls)
46
+ - name : Harden Runner
42
47
uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
43
48
with :
44
- egress-policy : audit
49
+ disable-sudo : true
50
+ egress-policy : block
51
+ allowed-endpoints : >
52
+ api.github.com:443
53
+ github.com:443
45
54
46
55
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
47
56
with :
@@ -59,10 +68,18 @@ jobs:
59
68
pull-requests : write
60
69
61
70
steps :
62
- - name : Harden the runner (Audit all outbound calls)
71
+ - name : Harden Runner
63
72
uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
64
73
with :
65
- egress-policy : audit
74
+ disable-sudo : true
75
+ egress-policy : block
76
+ allowed-endpoints : >
77
+ api.github.com:443
78
+ github.com:443
79
+ index.rubygems.org:443
80
+ objects.githubusercontent.com:443
81
+ raw.githubusercontent.com:443
82
+ rubygems.org:443
66
83
67
84
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
68
85
with :
Original file line number Diff line number Diff line change 12
12
schedule :
13
13
- cron : ' 20 7 * * 2'
14
14
push :
15
- branches : [" main" ]
15
+ branches : [' main' ]
16
16
17
17
# Declare default permissions as read only.
18
- permissions : read-all
18
+ permissions : {}
19
19
20
20
jobs :
21
21
analysis :
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ permissions: {}
9
9
10
10
jobs :
11
11
zizmor :
12
- name : zizmor latest via Cargo
12
+ name : zizmor latest via uv
13
13
runs-on : ubuntu-latest
14
14
15
15
permissions :
@@ -19,21 +19,28 @@ jobs:
19
19
actions : read
20
20
21
21
steps :
22
- - name : Harden the runner (Audit all outbound calls)
22
+ - name : Harden Runner
23
23
uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
24
24
with :
25
- egress-policy : audit
25
+ disable-sudo : true
26
+ egress-policy : block
27
+ allowed-endpoints : >
28
+ api.github.com:443
29
+ files.pythonhosted.org:443
30
+ github.com:443
31
+ objects.githubusercontent.com:443
32
+ pypi.org:443
26
33
27
34
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28
35
with :
29
36
persist-credentials : false
30
37
31
- - uses : actions-rust-lang /setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
38
+ - uses : astral-sh /setup-uv@f94ec6bedd8674c4426838e6b50417d36b6ab231 # v5.3.1
32
39
33
- - run : cargo install --locked zizmor
34
- - run : zizmor --persona pedantic --format sarif . > results.sarif
40
+ - run : uvx zizmor --persona pedantic --format sarif . > results.sarif
35
41
env :
36
42
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
+
37
44
- uses : github/codeql-action/upload-sarif@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
38
45
with :
39
46
sarif_file : results.sarif
Original file line number Diff line number Diff line change
1
+ rules :
2
+ artipacked :
3
+ ignore :
4
+ - generate.yml:25
5
+ - publish-gem.yml:42
You can’t perform that action at this time.
0 commit comments