Commit f663468
committed
fix(security.yml): osv-scanner asset rename + jscpd skip tests
Two follow-up fixes from PR #91 second-run:
osv-scanner exit 127 — `gh release download --output osv-scanner` was
silently ignored because the flag is only honoured for `--archive`
downloads or exact-asset names; with `--pattern` the asset writes to
the current dir at its source filename. Download as
`osv-scanner_linux_amd64`, then `mv` to `osv-scanner`. Added a
`./osv-scanner --version` smoke step so future regressions surface
immediately rather than as exit 127.
jscpd duplication breach — second run found ~50 clones across
`*LanguageExtractorTest.java` parallel test fixtures. Tests for
JavaLanguageExtractor / TypeScriptLanguageExtractor / PythonLanguageExtractor
/ GoLanguageExtractor share the same shape *by design* — same input
patterns, same assertion structure. That parallelism is a feature, not
a refactoring target. Production code is what jscpd should police.
Added `src/test/**` + `*Test.java` / `*Tests.java` / `*.test.ts(x)` to
the `--ignore` glob.
Threshold stays at 3% per board ruling.1 parent be92a63 commit f663468
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | | - | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
116 | 121 | | |
117 | 122 | | |
118 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
119 | 128 | | |
120 | 129 | | |
121 | 130 | | |
122 | 131 | | |
123 | | - | |
| 132 | + | |
124 | 133 | | |
125 | 134 | | |
126 | 135 | | |
| |||
0 commit comments