Skip to content

Commit b8c5ed8

Browse files
Merge pull request #343 from aws-solutions/solutions-pipelines-integration
Create Solutions GitHub workflow files.
2 parents d00d80b + cbae137 commit b8c5ed8

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
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: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Pull Request Workflow
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, reopened, synchronize]
6+
7+
jobs:
8+
pull-request-job:
9+
name: Status Checks
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
- name: Viperlight
15+
run: |
16+
wget -q https://viperlight-scanner.s3.amazonaws.com/latest/.viperlightrc
17+
wget -q https://viperlight-scanner.s3.amazonaws.com/latest/viperlight.zip
18+
unzip -q viperlight.zip -d ../viperlight
19+
rm -r ./viperlight.zip
20+
echo "Content scanning utility installation complete `date`"
21+
echo "Starting content scanning `date` in `pwd`"
22+
../viperlight/bin/viperlight scan -m files-contents -m files-aws -m files-binary -m files-entropy -m files-secrets
23+
echo "Completed content scanning `date`"

0 commit comments

Comments
 (0)