Skip to content

Commit b2e0871

Browse files
authored
Merge pull request #434 from aws-solutions/release/v6.1.1
chore(release): 6.1.1
2 parents 7d2ad04 + d5f9f5d commit b2e0871

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+34219
-73
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.github/workflows/ @aws-solutions/sb-csne

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99

1010
**Checklist**
11+
- [ ] :wave: I have added unit tests for all code changes.
1112
- [ ] :wave: I have run the unit tests, and all unit tests have passed.
1213
- [ ] :warning: This pull request might incur a breaking change.
1314

.github/workflows/cdk-nag.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Workflow that runs unit test
2+
name: CDK Nag Test
3+
4+
on:
5+
push:
6+
branches:
7+
- '*'
8+
pull_request:
9+
types: [opened, edited, reopened, synchronize]
10+
11+
jobs:
12+
cdk-nag:
13+
name: CDK Nag Check
14+
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
node-version: [16.x]
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- run: |
25+
cd source/constructs && npm i --only=dev
26+
npx cdk synth

.github/workflows/close_inactive_issues.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Workflow that runs prettier code style check.
2+
name: Code Style and Lint
3+
4+
on:
5+
push:
6+
branches:
7+
- '*'
8+
pull_request:
9+
types: [opened, edited, reopened, synchronize]
10+
11+
jobs:
12+
prettier:
13+
name: Style Check
14+
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
node-version: [16.x]
19+
steps:
20+
- uses: actions/checkout@v3
21+
- run: npx --y prettier --config source/.prettierrc.yml --check 'source/**/*.ts'
22+
linter:
23+
name: Lint Check
24+
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
25+
runs-on: ubuntu-latest
26+
strategy:
27+
matrix:
28+
node-version: [16.x]
29+
steps:
30+
- uses: actions/checkout@v3
31+
- uses: actions/setup-node@v3
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
- run: |
35+
cd source && npm i
36+
npx --y eslint . --ext .ts

.github/workflows/codeql.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Security Scans
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
types: [opened, edited, reopened, synchronize]
9+
10+
jobs:
11+
codeql:
12+
name: CodeQL Check
13+
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
language: [ javascript, typescript ]
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: github/codeql-action/init@v2
22+
with:
23+
languages: ${{ matrix.language }}
24+
- uses: github/codeql-action/analyze@v2
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Pipeline Workflow
2+
3+
env:
4+
REGION: us-east-1
5+
6+
on: push
7+
8+
jobs:
9+
pipeline-job:
10+
name: Pipeline Job
11+
if: github.repository_owner == 'aws-solutions'
12+
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write
15+
steps:
16+
- name: Configure AWS credentials
17+
uses: aws-actions/configure-aws-credentials@v1
18+
with:
19+
role-to-assume: ${{ secrets.DISPATCHER_ROLE_ARN }}
20+
aws-region: ${{ env.REGION }}
21+
role-duration-seconds: 900
22+
role-session-name: OIDCSession
23+
- name: Run CodeBuild
24+
uses: aws-actions/aws-codebuild-run-build@v1
25+
with:
26+
project-name: ${{ secrets.DISPATCHER_CODEBUILD_PROJECT_NAME }}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Pull Request Workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
types: [opened, edited, reopened, synchronize]
9+
10+
jobs:
11+
pull-request-job:
12+
name: Status Checks
13+
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: Viperlight
19+
run: |
20+
wget -q https://viperlight-scanner.s3.amazonaws.com/latest/viperlight.zip
21+
unzip -q viperlight.zip -d ../viperlight
22+
rm -r ./viperlight.zip
23+
echo "Content scanning utility installation complete `date`"
24+
echo "Starting content scanning `date` in `pwd`"
25+
../viperlight/bin/viperlight scan -m files-contents -m files-aws -m files-binary -m files-entropy -m files-secrets
26+
echo "Completed content scanning `date`"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Workflow that runs unit test
2+
name: Unit Test
3+
4+
on:
5+
push:
6+
branches:
7+
- '*'
8+
pull_request:
9+
types: [opened, edited, reopened, synchronize]
10+
11+
jobs:
12+
unittest:
13+
name: Unit Test Check
14+
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
node-version: [16.x]
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- run: |
25+
cd deployment
26+
chmod +x ./run-unit-tests.sh && DEBUG=true ./run-unit-tests.sh

.github/workflows/stale-issues.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Close Stale Issues and PRs
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
close-issues:
9+
name: Close Stale Issues
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/stale@v3
16+
with:
17+
days-before-stale: 90
18+
days-before-close: 7
19+
stale-issue-message: This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
20+
close-issue-message: This issue was closed because it has been inactive for 7 days since being marked as stale.
21+
stale-pr-message: This pr has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
22+
close-pr-message: This pr was closed because it has been inactive for 7 days since being marked as stale.

0 commit comments

Comments
 (0)