Skip to content
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

fix: Codescanning alerts #11159

Merged
merged 2 commits into from
Mar 30, 2023
Merged

fix: Codescanning alerts #11159

merged 2 commits into from
Mar 30, 2023

Conversation

stocaaro
Copy link
Member

Description of changes

Fixes (I expect) for the errors in the Amplify JS security tab.

Description of how you validated changes

I manually validated that the regex continues to match for a signed s3 url.

The I18N testing didn't seem complete enough so I added a test which I confirmed passes before and after my change (but doesn't pass if I replace the object instead of merging it into the existing object).

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@stocaaro stocaaro requested review from a team as code owners March 30, 2023 14:13
@codecov-commenter
Copy link

Codecov Report

Merging #11159 (5ddc85f) into main (2951311) will not change coverage.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##             main   #11159   +/-   ##
=======================================
  Coverage   82.38%   82.38%           
=======================================
  Files         204      204           
  Lines       19514    19514           
  Branches     4216     4216           
=======================================
  Hits        16077    16077           
  Misses       3151     3151           
  Partials      286      286           
Impacted Files Coverage Δ
packages/core/src/I18n/I18n.ts 93.47% <100.00%> (ø)
...c/Providers/AmazonAIIdentifyPredictionsProvider.ts 83.61% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@jimblanc jimblanc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -100,5 +100,26 @@ describe('I18n test', () => {
cn: {},
};
});

test('multi-call putVocabulariesForLanguage results in correct get result', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tests!

@@ -87,7 +87,7 @@
"name": "Core (I18n)",
"path": "./lib-esm/index.js",
"import": "{ I18n }",
"limit": "2 kB"
"limit": "2.1 kB"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonder why this went up for such a small change?

@stocaaro stocaaro merged commit b19e0ba into aws-amplify:main Mar 30, 2023
cshfang pushed a commit that referenced this pull request Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants