Skip to content

Commit 44ee8b1

Browse files
committed
Run importmap audit on CI
1 parent 1e4f161 commit 44ee8b1

File tree

1 file changed

+20
-2
lines changed
  • railties/lib/rails/generators/rails/app/templates/github

1 file changed

+20
-2
lines changed

railties/lib/rails/generators/rails/app/templates/github/ci.yml.tt

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
<%- unless skip_brakeman? -%>
11-
scan:
11+
scan_ruby:
1212
runs-on: ubuntu-latest
1313

1414
steps:
@@ -21,9 +21,27 @@ jobs:
2121
ruby-version: .ruby-version
2222
bundler-cache: true
2323

24-
- name: Scan for security vulnerabilities
24+
- name: Scan for security vulnerabilities in Ruby Dependencies
2525
run: bin/brakeman
2626
<% end -%>
27+
<%- if options[:javascript] == "importmap" -%>
28+
29+
scan_js:
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v4
35+
36+
- name: Set up Ruby
37+
uses: ruby/setup-ruby@v1
38+
with:
39+
ruby-version: .ruby-version
40+
bundler-cache: true
41+
42+
- name: Scan for security vulnerabilities in Javascript Dependencies
43+
run: bin/importmap audit
44+
<% end -%>
2745
<%- unless skip_rubocop? -%>
2846

2947
lint:

0 commit comments

Comments
 (0)