Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Remove secrets and fix shell step in task definition redeploy (#1517)
sarayourfriendc8063cd6f6fa
diff --git a/.github/actions/frontend-deploy/action.yml b/.github/actions/frontend-deploy/action.ymlindex bbb7dd7d7..93758f0d5 100644--- a/.github/actions/frontend-deploy/action.yml+++ b/.github/actions/frontend-deploy/action.yml@@ -12,6 +12,10 @@ inputs:tag:required: truedescription: Image tag to deploy.+ aws_access_key_id:+ required: true+ aws_secret_access_key:+ required: trueruns:using: "composite"@@ -20,12 +24,12 @@ runs:- name: Configure AWS credentialsuses: aws-actions/configure-aws-credentials@v1with:- aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}- aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}+ aws-access-key-id: ${{ inputs.aws_access_key_id }}+ aws-secret-access-key: ${{ inputs.aws_secret_access_key }}aws-region: us-east-2- name: Download task definition- with: shell+ shell: bashrun: |aws ecs describe-task-definition \--task-definition staging-frontend \diff --git a/.github/workflows/frontend_deploy.yml b/.github/workflows/frontend_deploy.ymlindex 7071c3eab..097d76aec 100644--- a/.github/workflows/frontend_deploy.yml+++ b/.github/workflows/frontend_deploy.yml@@ -24,3 +24,5 @@ jobs:- uses: ./.github/actions/frontend-deploywith:tag: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.sha) || (github.event_name == 'push' && 'main') || github.event.release.tag_name }}+ aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}+ aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}