Skip to content

Commit ea0f5f2

Browse files
authored
Merge pull request #1914 from Fryguy/yarn_audit_security
Add a security test that runs yarn npm audit
2 parents 1fcda86 + c3efd3a commit ea0f5f2

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
matrix:
1515
node-version:
1616
- 18
17+
test-suite:
18+
- test
19+
- test:security
1720
steps:
1821
- uses: actions/checkout@v4
1922
- name: Set up system
@@ -27,8 +30,8 @@ jobs:
2730
- name: Prepare tests
2831
run: bin/setup
2932
- name: Run tests
30-
run: yarn run test
33+
run: yarn run ${{ matrix.test-suite }}
3134
- name: Report code coverage
32-
if: ${{ github.ref == 'refs/heads/master' }}
35+
if: ${{ github.ref == 'refs/heads/master' && matrix.test-suite != 'test:security' }}
3336
continue-on-error: true
3437
run: cat reports/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

.yarnrc.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,25 @@ enableGlobalCache: true
44

55
nodeLinker: node-modules
66

7+
npmAuditIgnoreAdvisories:
8+
- "1089210" # pending | moderate | GHSA-m2h2-264f-f486 | angular >=1.7.0 | 1.8.3 brought in by manageiq-ui-service@workspace:.
9+
- "1093574" # pending | moderate | GHSA-prc3-vjfx-vhm9 | angular <=1.8.3 | 1.8.3 brought in by manageiq-ui-service@workspace:.
10+
- "1094512" # pending | moderate | GHSA-2vrf-hf26-jrp5 | angular <=1.8.3 | 1.8.3 brought in by manageiq-ui-service@workspace:.
11+
- "1094513" # pending | moderate | GHSA-2qqx-w9hr-q5gx | angular <=1.8.3 | 1.8.3 brought in by manageiq-ui-service@workspace:.
12+
- "1094514" # pending | moderate | GHSA-qwqh-hm9m-p5hr | angular <=1.8.3 | 1.8.3 brought in by manageiq-ui-service@workspace:.
13+
- "1097291" # pending | high | GHSA-4w4v-5hc9-xrr2 | angular >=1.3.0 <=1.8.3 | 1.8.3 brought in by manageiq-ui-service@workspace:.
14+
- "1091717" # pending | moderate | GHSA-ph58-4vrj-w6hr | bootstrap <3.4.0 | 3.3.7 brought in by patternfly@npm:3.25.1
15+
- "1091861" # pending | moderate | GHSA-3mgp-fx93-9xv5 | bootstrap <3.4.0 | 3.3.7 brought in by patternfly@npm:3.25.1
16+
- "1094984" # pending | moderate | GHSA-9v3m-8fp8-mj99 | bootstrap >=3.0.0 <3.4.1 | 3.3.7 brought in by patternfly@npm:3.25.1
17+
- "1095421" # pending | moderate | GHSA-4p24-vmcr-4gqj | bootstrap >=2.0.4 <3.4.0 | 3.3.7 brought in by patternfly@npm:3.25.1
18+
- "1095492" # pending | moderate | GHSA-3wqf-4x89-9g79 | bootstrap >=2.3.0 <3.4.0 | 3.3.7 brought in by patternfly@npm:3.25.1
19+
- "1095494" # pending | moderate | GHSA-7mvr-5x2g-wfc8 | bootstrap >=2.3.0 <3.4.0 | 3.3.7 brought in by patternfly@npm:3.25.1
20+
- "1086501" # pending | high | GHSA-9r7h-6639-v5mw | bootstrap-select <1.13.6 | 1.12.2, 1.12.4 brought in by angular-patternfly@npm:5.0.3, patternfly@npm:3.59.5
21+
- "1089856" # pending | moderate | GHSA-7c82-mp33-r854 | bootstrap-select <1.13.6 | 1.12.2, 1.12.4 brought in by angular-patternfly@npm:5.0.3, patternfly@npm:3.59.5
22+
- "1094185" # pending | moderate | GHSA-gxr4-xjj5-5px2 | jquery >=1.2.0 <3.5.0 | 3.2.1, 3.4.1 brought in by angular-patternfly@npm:5.0.3, patternfly@npm:3.25.1
23+
- "1097145" # pending | moderate | GHSA-6c3j-c64m-qhgq | jquery >=1.1.4 <3.4.0 | 3.2.1 brought in by patternfly@npm:3.25.1
24+
- "1097311" # pending | moderate | GHSA-jpcq-cgw6-v4j6 | jquery >=1.0.3 <3.5.0 | 3.2.1, 3.4.1 brought in by angular-patternfly@npm:5.0.3, patternfly@npm:3.25.1
25+
- "1096303" # pending | high | GHSA-p6mc-m468-83gw | lodash.pick >=4.0.0 <=4.4.0 | 4.4.0 brought in by cheerio@npm:0.22.0
26+
- "1094544" # pending | moderate | GHSA-7fh5-64p2-3v2j | postcss <8.4.31 | 7.0.39 brought in by autoprefixer@npm:9.8.8
27+
728
yarnPath: .yarn/releases/yarn-4.3.1.cjs

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"t": "yarn run build:test && yarn run test:karma",
2424
"test": "yarn run gettext:extract && yarn run gettext:validate && yarn run gettext:validate-language-codes && yarn run t",
2525
"test:karma": "karma start karma.conf.js --single-run",
26+
"test:security": "yarn npm audit --recursive --no-deprecations --environment production",
2627
"test:watch": "karma start --auto-watch --no-single-run",
2728
"update": "jq -r '.dependencies|keys|join(\"\n\")' package.json | grep -v patternfly-timeline | xargs yarn add",
2829
"update-dev": "jq -r '.devDependencies|keys|join(\"\n\")' package.json | xargs yarn add -D",

0 commit comments

Comments
 (0)