Skip to content

[Snyk] Security upgrade requests from 2.31.0 to 2.32.0 #92

[Snyk] Security upgrade requests from 2.31.0 to 2.32.0

[Snyk] Security upgrade requests from 2.31.0 to 2.32.0 #92

Workflow file for this run

name: update-lambda
on:
push:
branches:
- master
paths:
- 'AWS/lambda_function.py'
- 'AWS/urls.py'
- '.github/workflows/update-lambda.yml'
pull_request:
branches:
- master
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Zip folder
uses: papeloto/action-zip@v1
with:
files: AWS/ urls.py
recursive: true
dest: lambda.zip
- name: Setup Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install awscli
- 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: ${{ secrets.AWS_REGION }}
- name: Run
run: |
aws lambda update-function-code \
--function-name product-availability-checker \
--zip-file fileb://lambda.zip