Skip to content

Commit f425a55

Browse files
authored
Merge pull request #4818 from github/copilot/fix-4434fcb6-fe58-4635-987f-2f25ef6f0239
Fix GitHub Actions lint workflow: update gem versions and permissions for fork compatibility
2 parents 6c75b2d + 723ecd7 commit f425a55

File tree

3 files changed

+42
-35
lines changed

3 files changed

+42
-35
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: Lint
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
workflow_dispatch:
66
merge_group:
77

88
permissions:
99
contents: write
10+
checks: write
1011

1112
jobs:
1213
lint:
@@ -21,7 +22,7 @@ jobs:
2122

2223
- name: Run linters
2324
uses: wearerequired/lint-action@548d8a7c4b04d3553d32ed5b6e91eb171e10e7bb # v2
24-
if: ${{ github.event_name == 'pull_request' }}
25+
if: ${{ github.event_name == 'pull_request_target' }}
2526
with:
2627
auto_fix: true
2728
rubocop: true

Gemfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
source "https://rubygems.org"
22

3-
gem "faraday-retry", "~> 2.3.2"
3+
gem "faraday-retry", "2.3.1"
44
gem "github-pages", "~> 232", group: :jekyll_plugins
55
gem "nokogiri", "~> 1.18.8"
6+
gem "rake", "13.2.1"
7+
gem "rubocop", "1.75.5"
8+
gem "faraday", "2.12.2"
9+
gem "json", "2.11.3"
10+
gem "language_server-protocol", "3.17.0.4"
611

712
group :test do
813
gem "fastimage"
914
gem "httparty"
1015
gem "minitest"
1116
gem "octokit"
1217
gem "pry", require: false
13-
gem "rake"
14-
gem "rubocop"
1518
gem "rubocop-performance"
1619
gem "safe_yaml"
1720
end

Gemfile.lock

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (8.0.1)
4+
activesupport (8.0.2)
55
base64
66
benchmark (>= 0.3)
77
bigdecimal
@@ -18,8 +18,8 @@ GEM
1818
public_suffix (>= 2.0.2, < 7.0)
1919
ast (2.4.3)
2020
base64 (0.2.0)
21-
benchmark (0.4.0)
22-
bigdecimal (3.1.9)
21+
benchmark (0.4.1)
22+
bigdecimal (3.2.2)
2323
coderay (1.1.3)
2424
coffee-script (2.4.1)
2525
coffee-script-source
@@ -28,39 +28,39 @@ GEM
2828
colorator (1.1.0)
2929
commonmarker (0.23.11)
3030
concurrent-ruby (1.3.5)
31-
connection_pool (2.5.0)
32-
csv (3.3.3)
31+
connection_pool (2.5.3)
32+
csv (3.3.5)
3333
dnsruby (1.72.3)
3434
base64 (~> 0.2.0)
3535
simpleidn (~> 0.2.1)
36-
drb (2.2.1)
36+
drb (2.2.3)
3737
em-websocket (0.5.3)
3838
eventmachine (>= 0.12.9)
3939
http_parser.rb (~> 0)
4040
ethon (0.16.0)
4141
ffi (>= 1.15.0)
4242
eventmachine (1.2.7)
4343
execjs (2.10.0)
44-
faraday (2.13.1)
44+
faraday (2.12.2)
4545
faraday-net_http (>= 2.0, < 3.5)
4646
json
4747
logger
4848
faraday-net_http (3.4.1)
4949
net-http (>= 0.5.0)
50-
faraday-retry (2.3.2)
50+
faraday-retry (2.3.1)
5151
faraday (~> 2.0)
5252
fastimage (2.4.0)
53-
ffi (1.17.1)
54-
ffi (1.17.1-aarch64-linux-gnu)
55-
ffi (1.17.1-aarch64-linux-musl)
56-
ffi (1.17.1-arm-linux-gnu)
57-
ffi (1.17.1-arm-linux-musl)
58-
ffi (1.17.1-arm64-darwin)
59-
ffi (1.17.1-x86-linux-gnu)
60-
ffi (1.17.1-x86-linux-musl)
61-
ffi (1.17.1-x86_64-darwin)
62-
ffi (1.17.1-x86_64-linux-gnu)
63-
ffi (1.17.1-x86_64-linux-musl)
53+
ffi (1.17.2)
54+
ffi (1.17.2-aarch64-linux-gnu)
55+
ffi (1.17.2-aarch64-linux-musl)
56+
ffi (1.17.2-arm-linux-gnu)
57+
ffi (1.17.2-arm-linux-musl)
58+
ffi (1.17.2-arm64-darwin)
59+
ffi (1.17.2-x86-linux-gnu)
60+
ffi (1.17.2-x86-linux-musl)
61+
ffi (1.17.2-x86_64-darwin)
62+
ffi (1.17.2-x86_64-linux-gnu)
63+
ffi (1.17.2-x86_64-linux-musl)
6464
forwardable-extended (2.6.0)
6565
gemoji (4.1.0)
6666
github-pages (232)
@@ -235,12 +235,12 @@ GEM
235235
gemoji (>= 3, < 5)
236236
html-pipeline (~> 2.2)
237237
jekyll (>= 3.0, < 5.0)
238-
json (2.12.2)
238+
json (2.11.3)
239239
kramdown (2.4.0)
240240
rexml
241241
kramdown-parser-gfm (1.1.0)
242242
kramdown (~> 2.0)
243-
language_server-protocol (3.17.0.5)
243+
language_server-protocol (3.17.0.4)
244244
lint_roller (1.1.0)
245245
liquid (4.0.4)
246246
listen (3.9.0)
@@ -250,13 +250,13 @@ GEM
250250
mercenary (0.3.6)
251251
method_source (1.1.0)
252252
mini_mime (1.1.5)
253-
mini_portile2 (2.8.8)
253+
mini_portile2 (2.8.9)
254254
minima (2.5.1)
255255
jekyll (>= 3.5, < 5.0)
256256
jekyll-feed (~> 0.9)
257257
jekyll-seo-tag (~> 2.1)
258258
minitest (5.25.5)
259-
multi_xml (0.7.1)
259+
multi_xml (0.7.2)
260260
bigdecimal (~> 3.1)
261261
net-http (0.6.0)
262262
uri
@@ -295,22 +295,22 @@ GEM
295295
public_suffix (5.1.1)
296296
racc (1.8.1)
297297
rainbow (3.1.1)
298-
rake (13.3.0)
298+
rake (13.2.1)
299299
rb-fsevent (0.11.2)
300300
rb-inotify (0.11.1)
301301
ffi (~> 1.0)
302302
regexp_parser (2.10.0)
303-
rexml (3.4.0)
303+
rexml (3.4.1)
304304
rouge (3.30.0)
305-
rubocop (1.77.0)
305+
rubocop (1.75.5)
306306
json (~> 2.3)
307307
language_server-protocol (~> 3.17.0.2)
308308
lint_roller (~> 1.1.0)
309309
parallel (~> 1.10)
310310
parser (>= 3.3.0.2)
311311
rainbow (>= 2.2.2, < 4.0)
312312
regexp_parser (>= 2.9.3, < 3.0)
313-
rubocop-ast (>= 1.45.1, < 2.0)
313+
rubocop-ast (>= 1.44.0, < 2.0)
314314
ruby-progressbar (~> 1.7)
315315
unicode-display_width (>= 2.4.0, < 4.0)
316316
rubocop-ast (1.45.1)
@@ -361,16 +361,19 @@ PLATFORMS
361361
x86_64-linux-musl
362362

363363
DEPENDENCIES
364-
faraday-retry (~> 2.3.2)
364+
faraday (= 2.12.2)
365+
faraday-retry (= 2.3.1)
365366
fastimage
366367
github-pages (~> 232)
367368
httparty
369+
json (= 2.11.3)
370+
language_server-protocol (= 3.17.0.4)
368371
minitest
369372
nokogiri (~> 1.18.8)
370373
octokit
371374
pry
372-
rake
373-
rubocop
375+
rake (= 13.2.1)
376+
rubocop (= 1.75.5)
374377
rubocop-performance
375378
safe_yaml
376379
webrick

0 commit comments

Comments
 (0)