Skip to content

Bump pyparsing from 2.4.7 to 3.2.1 #86

Bump pyparsing from 2.4.7 to 3.2.1

Bump pyparsing from 2.4.7 to 3.2.1 #86

Workflow file for this run

name: EC2 deployment
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'host/**'
pull_request:
branches: [ main ]
paths:
- 'host/**'
jobs:
continuous-integration:
defaults:
run:
working-directory: host/
runs-on: ubuntu-latest
steps:
# Step 1
- uses: actions/checkout@v2
# Step 2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
# Step 3
- name: Install dependencies
run: pip install -r requirements.txt
# Step 4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
# Step 5
- name: Run Prisma Cloud Code Security
id: Bridgecrew
uses: bridgecrewio/bridgecrew-action@master
env:
PRISMA_API_URL: https://api2.prismacloud.io
# LOG_LEVEL: DEBUG
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_REF: ${{ github.ref }}
GITHUB_SHA: ${{ github.sha }}
GITHUB_SERVER_URL: $GITHUB_SERVER_URL
with:
api-key: ${{ secrets.BC_API_KEY }}
soft_fail: true
# download_external_modules: true
# Step 6
- name: Build Application and Run unit Test
run: python app.py & pytest
continuous-deployment:
runs-on: ubuntu-latest
needs: [continuous-integration]
if: github.ref == 'refs/heads/main'
steps:
# Step 1
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
# Step 2
- name: Create CodeDeploy Deployment
id: deploy
run: |
aws deploy create-deployment \
--application-name VulnApp \
--deployment-group-name VulnApp \
--deployment-config-name CodeDeployDefault.OneAtATime \
--github-location repository=${{ github.repository }},commitId=${{ github.sha }}