Skip to content

Commit 6dfc44a

Browse files
Modify CI workflow for JavaScript vulnerability testing
Updated CI workflow to test for public JavaScript library vulnerabilities instead of building Ruby versions.
1 parent 479d73d commit 6dfc44a

File tree

1 file changed

+7
-39
lines changed

1 file changed

+7
-39
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,12 @@
1-
name: CI
2-
3-
on:
4-
- push
5-
- pull_request
1+
name: Test site for publicly known js vulnerabilities
62

3+
on: push
74
jobs:
8-
build:
9-
name: Ruby ${{ matrix.version }}
5+
security:
106
runs-on: ubuntu-latest
11-
strategy:
12-
matrix:
13-
version:
14-
- 3.0
15-
- 3.1
16-
- 3.2
17-
- 3.3
187
steps:
19-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20-
- name: Set up Ruby ${{ matrix.version }}
21-
uses: ruby/setup-ruby@829114fc20da43a41d27359103ec7a63020954d4 # v1.255.0
8+
- name: Test for public javascript library vulnerabilities
9+
uses: lirantal/is-website-vulnerable@main
2210
with:
23-
ruby-version: ${{ matrix.version }}
24-
- name: Install OpenSSL
25-
run: |
26-
sudo apt-get update
27-
sudo apt-get install -y libssl-dev
28-
- name: Run Bundle Commands
29-
run: |
30-
bundle config set --with docs
31-
bundle config set ignore_messages true
32-
bundle
33-
- name: Run RuboCop
34-
run: |
35-
bundle exec rubocop
36-
- name: Run Typecheck
37-
run: |
38-
bundle exec srb tc
39-
- name: Run tests
40-
run: |
41-
bundle exec rake test:library
42-
- name: Run REST wrapper tests
43-
run: |
44-
bundle exec rake test:rest_wrappers
11+
scan-url: "https://*.*.com"
12+

0 commit comments

Comments
 (0)