Merge branch 'main' into sms-provider-cleanup

* main:
  Update to most recent pip-audit action
  Remove restart: always from devcontainer
  simplify to use the script for this exact purpose
  simplify cleanup steps
  update sandbox teardown steps
This commit is contained in:
Ryan Ahearn
2023-01-03 10:23:55 -05:00
5 changed files with 8 additions and 6 deletions

View File

@@ -59,7 +59,7 @@ jobs:
- uses: ./.github/actions/setup-project
- name: Create requirements.txt
run: pipenv requirements > requirements.txt
- uses: trailofbits/gh-action-pip-audit@v1.0.0
- uses: pypa/gh-action-pip-audit@v1.0.4
with:
inputs: requirements.txt
ignore-vulns: PYSEC-2022-237

View File

@@ -29,7 +29,7 @@ jobs:
- uses: ./.github/actions/setup-project
- name: Create requirements.txt
run: pipenv requirements > requirements.txt
- uses: trailofbits/gh-action-pip-audit@v1.0.0
- uses: pypa/gh-action-pip-audit@v1.0.4
with:
inputs: requirements.txt
ignore-vulns: PYSEC-2022-237

View File

@@ -66,8 +66,8 @@ freeze-requirements: ## Pin all requirements including sub dependencies into req
audit:
pipenv requirements > requirements.txt
pipenv requirements --dev > requirements_for_test.txt
pipenv run pip-audit -r requirements.txt -l --ignore-vuln PYSEC-2022-237
-pipenv run pip-audit -r requirements_for_test.txt -l
pipenv run pip-audit -r requirements.txt --ignore-vuln PYSEC-2022-237
-pipenv run pip-audit -r requirements_for_test.txt
.PHONY: static-scan
static-scan:

View File

@@ -48,7 +48,6 @@ services:
- redis
links:
- db
restart: always
worker:
container_name: worker
image: dev-notification-api

View File

@@ -42,7 +42,10 @@ for experimenting with infrastructure changes without going through the full CI/
Rules for use:
1. Ensure that no other developer is using the environment, as there is nothing stopping changes from overwriting each other.
1. Clean up services you create when you are done. `terraform destroy` from within the `terraform/sandbox` directory should do it.
1. Clean up when you are done:
- `terraform destroy` from within the `terraform/sandbox` directory will take care of the provisioned services
- Delete the apps and routes shown in `cf apps` by running `cf delete APP_NAME -r`
- Delete the space deployers still shown in `cf services` by running `terraform/destroy_service_account.sh -s notify-sandbox -u <space-deployer>`
### Deploying to the sandbox