-
Notifications
You must be signed in to change notification settings - Fork 0
added Check Imports action #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…re and there is a small circular issue
adcreare
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - few minor things
package-denier/action.yml
Outdated
| name: Package Denier | ||
| description: Check for banned packages | ||
| runs: | ||
| using: node16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably best this uses node18 - actually that probably goes for all the actions as they are all using 16 at the moment.
| return key.slice(key.lastIndexOf(prefix) + prefix.length); | ||
| } | ||
|
|
||
| function compareSemverVersions(version1: string, version2: string): number { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it make sense to use the npm semver package here? https://github.com/npm/node-semver - as its made by the NPM people its probably going to get updates for any additional operators they add? It includes a comparison operator
src/package-denier/rules.ts
Outdated
| /* | ||
| This is the list of packages that are not allowed to be imported. | ||
| */ | ||
| const rules: Rule[] = [['@aws-sdk/client-*', '>', '3.1.0']]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be 3.193.0 I believe thats the last version we've had live without issues inside aws-nock.
Also should add:
got > 11.8.5get-port > 5.1.1antlr4 > 4.9.3@aws-sdk/credential-provider-ini > 3.193.0@aws-sdk/credential-provider-node > 3.193.0@aws-sdk/smithy-client > 3.193.0@aws-sdk/types > 3.193.0
|
Coverage after merging add-package-denier-action into main will be
Coverage Report |
adcreare
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
carlansley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Resolves #21