Skip to content

[Snyk] Security upgrade django from 2.2.24 to 4.2.17 #19

[Snyk] Security upgrade django from 2.2.24 to 4.2.17

[Snyk] Security upgrade django from 2.2.24 to 4.2.17 #19

name: Cleanup review environment
# only trigger on pull request closed events
on:
pull_request:
types: [ closed ]
branches: [ master, stable ]
jobs:
cleanup:
# https://shipit.dev/posts/trigger-github-actions-on-pr-close.html
# We want to delete the stack regardless if it has been merged or not
name: Delete review stack
environment: review
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
cache: "npm"
cache-dependency-path: infra/review-pr/package-lock.json
# Install pulumi dependencies
# Select the new pulumi stack
- run: |
npm install
working-directory: infra/review-pr
- name: Compute some values
id: compute
run: |
echo "::set-output name=pulumi_stack::gitcoin/review/review-${{ github.event.number }}"
echo "::set-output name=review_domain::review-${{ github.event.number }}.review.gitcoin.co"
# Run pulumi actions
- name: Delete the pulumi stack
uses: pulumi/actions@v3
id: pulumi
with:
command: destroy
stack-name: ${{ steps.compute.outputs.pulumi_stack }}
work-dir: infra/review-pr
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
DB_NAME: ${{ secrets.DB_NAME }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_USER: ${{ secrets.DB_USER }}