10
10
CARGO_TERM_COLOR : always
11
11
CARGO_PATCH_CRATES_IO_RSONPATH_LIB_GIT : https://github.com/V0ldek/rsonpath.git
12
12
13
+ permissions :
14
+ contents : read
15
+
13
16
jobs :
14
17
build :
15
18
runs-on : ubuntu-latest
16
19
steps :
20
+ - name : Harden Runner
21
+ uses : step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
22
+ with :
23
+ egress-policy : audit
24
+
17
25
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18
26
- name : Force remove rsonpath-lib patch from Cargo.toml
19
27
run : sed -i '/^\[patch.crates-io\]/d' ./Cargo.toml && sed -i '/^rsonpath-lib = { path = .*$/d' ./Cargo.toml
36
44
target/
37
45
key : cargo-${{ hashFiles('**/Cargo.toml') }}
38
46
- name : Build all features
39
- uses : actions-rs/cargo@v1
47
+ uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
40
48
with :
41
49
command : build
42
50
args : --all-features
47
55
name : Clippy (stable)
48
56
runs-on : ubuntu-latest
49
57
steps :
58
+ - name : Harden Runner
59
+ uses : step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
60
+ with :
61
+ egress-policy : audit
62
+
50
63
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
51
64
- name : Force remove rsonpath-lib patch from Cargo.toml
52
65
run : sed -i '/^\[patch.crates-io\]/d' ./Cargo.toml && sed -i '/^rsonpath-lib = { path = .*$/d' ./Cargo.toml
@@ -69,14 +82,14 @@ jobs:
69
82
target/
70
83
key : cargo-${{ hashFiles('**/Cargo.toml') }}
71
84
- name : Build all features
72
- uses : actions-rs/cargo@v1
85
+ uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
73
86
with :
74
87
command : build
75
88
args : --all-features
76
89
env :
77
90
RUSTFLAGS : " --deny warnings"
78
91
- name : Clippy all features
79
- uses : actions-rs/clippy-check@v1
92
+ uses : actions-rs/clippy-check@b5b5f21f4797c02da247df37026fcd0a5024aa4d # v1.0.7
80
93
with :
81
94
token : ${{ secrets.GITHUB_TOKEN }}
82
95
args : --all-features -- --deny warnings
@@ -87,6 +100,11 @@ jobs:
87
100
name : Clippy (nightly)
88
101
runs-on : ubuntu-latest
89
102
steps :
103
+ - name : Harden Runner
104
+ uses : step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
105
+ with :
106
+ egress-policy : audit
107
+
90
108
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
91
109
- name : Force remove rsonpath-lib patch from Cargo.toml
92
110
run : sed -i '/^\[patch.crates-io\]/d' ./Cargo.toml && sed -i '/^rsonpath-lib = { path = .*$/d' ./Cargo.toml
@@ -109,21 +127,21 @@ jobs:
109
127
target/
110
128
key : cargo-${{ hashFiles('**/Cargo.toml') }}
111
129
- name : Rustup nightly toolchain
112
- uses : actions-rs/toolchain@v1
130
+ uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
113
131
with :
114
132
toolchain : nightly
115
133
components : clippy, rustfmt
116
134
override : true
117
135
default : true
118
136
- name : Build all features
119
- uses : actions-rs/cargo@v1
137
+ uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
120
138
with :
121
139
command : build
122
140
args : --all-features
123
141
env :
124
142
RUSTFLAGS : " --deny warnings"
125
143
- name : Clippy all features
126
- uses : actions-rs/clippy-check@v1
144
+ uses : actions-rs/clippy-check@b5b5f21f4797c02da247df37026fcd0a5024aa4d # v1.0.7
127
145
with :
128
146
token : ${{ secrets.GITHUB_TOKEN }}
129
147
args : --all-features -- --deny warnings
0 commit comments