-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into v5/custom-clients
- Loading branch information
Showing
505 changed files
with
35,641 additions
and
19,783 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script detects duplicated Amplify dependencies in the dependency graph (with NPM) | ||
duplicatedDependencies=$( | ||
npm ls -all 2>/dev/null | \ | ||
grep -o -e '@\?aws-amplify[^ ]*' | \ | ||
sort | uniq | \ | ||
sed -E 's/^(@?[^@]+).*$/\1/g' | \ | ||
uniq -d | sort | ||
) | ||
|
||
if [ ! "$duplicatedDependencies" ]; then | ||
echo "No duplicated Amplify dependencies detected." | ||
else | ||
echo "Duplicated Amplify dependencies detected: $duplicatedDependencies" | ||
false | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: issue-pending-response | ||
on: | ||
issue_comment: | ||
types: [created] | ||
permissions: | ||
issues: write | ||
jobs: | ||
issue_commented: | ||
if: ${{ !github.event.issue.pull_request && contains(github.event.issue.labels.*.name, 'pending-response') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: siegerts/pending-author-response@v1 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
pending-response-label: pending-response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: 'Snyk Security' | ||
|
||
on: | ||
push: | ||
branches: ['release'] | ||
schedule: | ||
- cron: '0 0 * * *' # run daily at midnight GMT | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
snyk: | ||
if: github.repository == 'aws-amplify/amplify-js' | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Snyk CLI to check for security issues | ||
uses: snyk/actions/setup@806182742461562b67788a64410098c9d9b96adb | ||
- name: Build | ||
run: yarn install || true | ||
# Using `|| true` to not fail the pipeline | ||
- name: Snyk test | ||
env: | ||
SNYK_TOKEN: ${{secrets.SNYK_TOKEN}} | ||
run: snyk test --sarif | tee snyk-code.sarif # || true | ||
|
||
# Push the Snyk Code results into GitHub Code Scanning tab | ||
- name: Upload result to GitHub Code Scanning | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: snyk-code.sarif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.