Skip to content

Commit 3128f43

Browse files
authored
Fix vulnerabilities and improve CI (#37)
* Run build in PR CI Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> * Update Gemfile.lock to remove vulnerable package Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> --------- Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
1 parent 57e3d78 commit 3128f43

File tree

2 files changed

+5
-27
lines changed

2 files changed

+5
-27
lines changed

.github/workflows/jekyll.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
name: Deploy Jekyll site to Pages
88

99
on:
10-
# Runs on pushes targeting the default branch
10+
# Runs on pushes targeting the default branch and pull requests
1111
push:
1212
branches: ["main"]
13+
pull_request:
1314

1415
# Allows you to run this workflow manually from the Actions tab
1516
workflow_dispatch:
@@ -52,8 +53,9 @@ jobs:
5253
# Automatically uploads an artifact from the './_site' directory by default
5354
uses: actions/upload-pages-artifact@v3
5455

55-
# Deployment job
56+
# Deployment job (only if triggered by push to main)
5657
deploy:
58+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
5759
environment:
5860
name: github-pages
5961
url: ${{ steps.deployment.outputs.page_url }}

Gemfile.lock

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,8 @@ GEM
4545
logger
4646
faraday-net_http (3.4.0)
4747
net-http (>= 0.5.0)
48-
ffi (1.17.1-aarch64-linux-gnu)
49-
ffi (1.17.1-aarch64-linux-musl)
50-
ffi (1.17.1-arm-linux-gnu)
51-
ffi (1.17.1-arm-linux-musl)
5248
ffi (1.17.1-arm64-darwin)
53-
ffi (1.17.1-x86_64-darwin)
5449
ffi (1.17.1-x86_64-linux-gnu)
55-
ffi (1.17.1-x86_64-linux-musl)
5650
forwardable-extended (2.6.0)
5751
gemoji (4.1.0)
5852
github-pages (232)
@@ -241,22 +235,10 @@ GEM
241235
minitest (5.25.4)
242236
net-http (0.6.0)
243237
uri
244-
nokogiri (1.18.3-aarch64-linux-gnu)
245-
racc (~> 1.4)
246-
nokogiri (1.18.3-aarch64-linux-musl)
247-
racc (~> 1.4)
248-
nokogiri (1.18.3-arm-linux-gnu)
249-
racc (~> 1.4)
250-
nokogiri (1.18.3-arm-linux-musl)
251-
racc (~> 1.4)
252238
nokogiri (1.18.3-arm64-darwin)
253239
racc (~> 1.4)
254-
nokogiri (1.18.3-x86_64-darwin)
255-
racc (~> 1.4)
256240
nokogiri (1.18.3-x86_64-linux-gnu)
257241
racc (~> 1.4)
258-
nokogiri (1.18.3-x86_64-linux-musl)
259-
racc (~> 1.4)
260242
octokit (4.25.1)
261243
faraday (>= 1, < 3)
262244
sawyer (~> 0.9)
@@ -292,14 +274,8 @@ GEM
292274
webrick (1.9.1)
293275

294276
PLATFORMS
295-
aarch64-linux-gnu
296-
aarch64-linux-musl
297-
arm-linux-gnu
298-
arm-linux-musl
299277
arm64-darwin
300-
x86_64-darwin
301-
x86_64-linux-gnu
302-
x86_64-linux-musl
278+
x86_64-linux
303279

304280
DEPENDENCIES
305281
github-pages (~> 232)

0 commit comments

Comments
 (0)