Federico Builes
7e41a6f1ee
Removing unnecessary beforeAll block
...
Mocks are removed in Jest automatically due to our
Jest config file.
Co-authored-by: Christine Nagadya <cnagadya@github.com >
Co-authored-by: Henri Maurer <hmaurer@github.com >
2022-10-13 16:52:54 +02:00
cnagadya
4c0961eff6
Add tests for GitHub License API fallback
2022-10-13 11:57:38 +00:00
cnagadya
d1e9a12830
Resolve conflicts
2022-10-13 11:06:40 +00:00
Federico Builes
2dd6c6a3d7
Fixing a bug with GHSA filtering.
...
Co-authored-by: Christine Nagadya <cnagadya@github.com >
2022-10-11 15:17:34 +02:00
Sarah Aladetan
602f968ea2
create a filter for vulns that are on the allowlist
2022-09-22 21:36:26 +00:00
Sarah Aladetan
bd61ea0d9e
create config option for ghsa allowlist
2022-09-22 21:34:18 +00:00
Federico Builes
54cd9a7cba
Merge branch 'main' into external-config
...
# Conflicts:
# README.md
# __tests__/config.test.ts
# dist/index.js.map
# src/config.ts
# src/schemas.ts
2022-09-21 16:50:02 +02:00
Federico Builes
c4693c00ac
Raise errors for invalid values in the external config.
2022-09-21 16:30:05 +02:00
Federico Builes
eef7e39202
Accept options from both sources, prioritize external config.
2022-09-20 15:52:34 +02:00
Federico Builes
61f19e6447
Let the users set the path for the config file.
2022-09-20 15:15:14 +02:00
Federico Builes
1ef21ab130
Leave a failing test for tomorrow!
2022-09-19 17:34:12 +02:00
Federico Builes
3c95902dd6
Adding more tests for the config file.
2022-09-19 17:29:25 +02:00
Federico Builes
b93fcee7ff
Raise an error if the config file is not found.
2022-09-19 16:36:45 +02:00
Federico Builes
0ba71661e5
Adding failing tests.
2022-09-16 14:32:09 +02:00
Sarah Aladetan
6549b27685
add configuration for scopes to fail on
2022-09-15 18:48:58 +00:00
Sarah Aladetan
f4b16c52e5
add method to filter changes by given scopes
2022-09-15 18:00:07 +00:00
Sarah Aladetan
1a7a37c468
add scope to change schema
2022-09-15 17:53:34 +00:00
Federico Builes
d2018420d8
Clean up mock data setup.
2022-08-18 15:03:11 +02:00
Will Da Silva
388b1a309d
Support user-provided base/head refs & non-PR workflows
2022-07-21 15:47:05 -04:00
Kenichi Kamiya
c003e7f8fc
Add more test for added and removed pattern
2022-07-13 19:07:12 +09:00
Kenichi Kamiya
c5d7bdcf7f
Ignore removed changes in license checker
2022-07-13 18:11:10 +09:00
Kenichi Kamiya
08074685be
Fix a typo s/dangerouns/dangerous/
2022-07-05 18:32:34 +09:00
Federico Builes
42e2bc1ed2
Handle unknown licenses.
2022-06-14 13:54:27 +02:00
Federico Builes
0b87f02bee
Document how we test inputs
2022-06-14 13:00:18 +02:00
Federico Builes
fd6e756c7b
Updating readConfig() to be more readable, get rid of typecasts.
...
Co-authored-by: Henri Maurer <hmaurer@github.com >
2022-06-14 11:29:13 +02:00
Federico Builes
f83a407eb9
Use the correct name for allowlists.
2022-06-14 09:46:59 +02:00
Federico Builes
76ad37608d
Adding more tests for the config file.
2022-06-14 07:42:51 +02:00
Federico Builes
3eff3f5918
let => const
2022-06-14 07:42:13 +02:00
Federico Builes
ef97470a0f
Don't set the defaults in the test :/
2022-06-14 07:04:26 +02:00
Federico Builes
efecf6fd09
Remove the variables from env so they don't default to empty strings.
2022-06-14 06:49:18 +02:00
Federico Builes
1791775ce6
temp commit
2022-06-14 05:57:43 +02:00
Federico Builes
eebebcdc2a
Use real PURLs in tests
2022-06-13 20:19:01 +02:00
Federico Builes
fe78920139
Document unwanted behavior for a future refactoring.
2022-06-13 20:04:39 +02:00
Federico Builes
20cca5c0c4
The default settings should not use [].
2022-06-08 18:28:10 +02:00
Federico Builes
4ac3d318ab
Refactoring on PR feedback.
2022-06-08 17:45:42 +02:00
Federico Builes
25271922eb
Clarify variable names.
2022-06-08 15:53:14 +02:00
Federico Builes
1261e18905
Clarify license tests.
2022-06-06 20:32:46 +02:00
Federico Builes
06297bf229
Fixing failing tests
2022-06-06 20:32:46 +02:00
Federico Builes
bccacf9708
Skeleton for license validation.
2022-06-06 20:32:46 +02:00
Federico Builes
c235374b9d
Removing redundant test.
2022-06-01 13:42:22 +02:00
Federico Builes
19b36f0933
Use a more definitive name for the config file.
2022-06-01 13:28:03 +02:00
Federico Builes
0b9547aabf
Adding more expectations for severities.
2022-06-01 13:14:32 +02:00
Federico Builes
f9a13e70f4
Fixing circular reference, adding prettier.
2022-06-01 12:09:11 +02:00
Federico Builes
db9f724163
Introduce a schema for ConfigurationOptions.
...
This commit illustrates an approach, but is currently
failing the tests.
2022-06-01 06:36:02 +02:00
Federico Builes
2dd55385c1
Use let instead of var, fix failing test.
2022-06-01 05:31:33 +02:00
Federico Builes
f0a04841ce
Adding logic to filter by vulnerability severity.
2022-05-31 16:50:39 +02:00
Federico Builes
a8dcc6b774
Adding basic config file parsing and some test scaffolding.
2022-05-26 15:54:59 -07:00
Federico Builes
3f943b86c9
initial commit
2022-03-31 18:31:39 +02:00