File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
railties/lib/rails/generators/rails/app/templates/github Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs:
9
9
<%- unless skip_brakeman? -%>
10
- scan :
10
+ scan_ruby :
11
11
runs-on: ubuntu-latest
12
12
13
13
steps:
20
20
ruby-version: .ruby-version
21
21
bundler-cache: true
22
22
23
- - name: Scan for security vulnerabilities
23
+ - name: Scan for security vulnerabilities in Ruby Dependencies
24
24
run: bin/brakeman
25
25
<% end -%>
26
+ <%- if options[:javascript] == "importmap" -%>
27
+
28
+ scan_js:
29
+ runs-on: ubuntu-latest
30
+
31
+ steps:
32
+ - name: Checkout code
33
+ uses: actions/checkout@v4
34
+
35
+ - name: Set up Ruby
36
+ uses: ruby/setup-ruby@v1
37
+ with:
38
+ ruby-version: .ruby-version
39
+ bundler-cache: true
40
+
41
+ - name: Scan for security vulnerabilities in Javascript Dependencies
42
+ run: bin/importmap audit
43
+ <% end -%>
26
44
<%- unless skip_rubocop? -%>
27
45
28
46
lint:
You can’t perform that action at this time.
0 commit comments