Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alejandro/v1.14 rc/removing twitter params #525

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 2 additions & 41 deletions .github/actions/custom-actions/aselo_beta_custom/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,7 @@ description: 'Sets up environment variables related to non-standard additional f
runs:
using: "composite"
steps:
# Set Twitter variables
- name: Set Aselo Twitter Consumer Key
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_CONSUMER_KEY"
env_variable_name: "TWITTER_CONSUMER_KEY"
- name: Set Aselo Twitter Consumer Secret
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_CONSUMER_SECRET"
env_variable_name: "TWITTER_CONSUMER_SECRET"
- name: Set helpline Twitter Access Token
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_ACCESS_TOKEN_1534172961187500033_AseloBeta"
env_variable_name: "TWITTER_ACCESS_TOKEN"
- name: Set helpline Twitter Access Secret
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_ACCESS_TOKEN_SECRET_1534172961187500033_AseloBeta"
env_variable_name: "TWITTER_ACCESS_TOKEN_SECRET"
- name: Set helpline Twitter Flex Flow SID
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "STG_TWILIO_AS_TWITTER_FLEX_FLOW_SID"
env_variable_name: "TWITTER_FLEX_FLOW_SID"

- name: Set Aselo Facebook App Secret
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
Expand All @@ -59,21 +34,7 @@ runs:
ssm_parameter: "STG_TWILIO_AS_INSTAGRAM_FLEX_FLOW_SID"
env_variable_name: "INSTAGRAM_FLEX_FLOW_SID"
# Append environment variables
- name: Add TWITTER_CONSUMER_KEY
run: echo "TWITTER_CONSUMER_KEY=${{ env.TWITTER_CONSUMER_KEY }}" >> .env
shell: bash
- name: Add TWITTER_CONSUMER_SECRET
run: echo "TWITTER_CONSUMER_SECRET=${{ env.TWITTER_CONSUMER_SECRET }}" >> .env
shell: bash
- name: Add TWITTER_ACCESS_TOKEN
run: echo "TWITTER_ACCESS_TOKEN=${{ env.TWITTER_ACCESS_TOKEN }}" >> .env
shell: bash
- name: Add TWITTER_ACCESS_TOKEN_SECRET
run: echo "TWITTER_ACCESS_TOKEN_SECRET=${{ env.TWITTER_ACCESS_TOKEN_SECRET }}" >> .env
shell: bash
- name: Add TWITTER_FLEX_FLOW_SID
run: echo "TWITTER_FLEX_FLOW_SID=${{ env.TWITTER_FLEX_FLOW_SID }}" >> .env
shell: bash

- name: Add FACEBOOK_APP_SECRET
run: echo "FACEBOOK_APP_SECRET=${{ env.FACEBOOK_APP_SECRET }}" >> .env
shell: bash
Expand Down
41 changes: 0 additions & 41 deletions .github/actions/custom-actions/aselo_development_custom/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,31 +64,6 @@ runs:
ssm_parameter: /development/iwf/${{inputs.account-sid}}/report_url
env_variable_name: "IWF_REPORT_URL"

- name: Set Aselo Twitter Consumer Key
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_CONSUMER_KEY"
env_variable_name: "TWITTER_CONSUMER_KEY"
- name: Set Aselo Twitter Consumer Secret
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_CONSUMER_SECRET"
env_variable_name: "TWITTER_CONSUMER_SECRET"
- name: Set helpline Twitter Access Token
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_ACCESS_TOKEN_1398343158954663937_AseloDev"
env_variable_name: "TWITTER_ACCESS_TOKEN"
- name: Set helpline Twitter Access Secret
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_ACCESS_TOKEN_SECRET_1398343158954663937_AseloDev"
env_variable_name: "TWITTER_ACCESS_TOKEN_SECRET"
- name: Set helpline Twitter Flex Flow SID
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "DEV_TWILIO_AS_TWITTER_FLEX_FLOW_SID"
env_variable_name: "TWITTER_FLEX_FLOW_SID"
- name: Set Aselo Facebook App Secret
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
Expand Down Expand Up @@ -140,22 +115,6 @@ runs:
- name: Add IWF_REPORT_URL
run: echo "IWF_REPORT_URL=${{ env.IWF_REPORT_URL }}" >> .env
shell: bash

- name: Add TWITTER_CONSUMER_KEY
run: echo "TWITTER_CONSUMER_KEY=${{ env.TWITTER_CONSUMER_KEY }}" >> .env
shell: bash
- name: Add TWITTER_CONSUMER_SECRET
run: echo "TWITTER_CONSUMER_SECRET=${{ env.TWITTER_CONSUMER_SECRET }}" >> .env
shell: bash
- name: Add TWITTER_ACCESS_TOKEN
run: echo "TWITTER_ACCESS_TOKEN=${{ env.TWITTER_ACCESS_TOKEN }}" >> .env
shell: bash
- name: Add TWITTER_ACCESS_TOKEN_SECRET
run: echo "TWITTER_ACCESS_TOKEN_SECRET=${{ env.TWITTER_ACCESS_TOKEN_SECRET }}" >> .env
shell: bash
- name: Add TWITTER_FLEX_FLOW_SID
run: echo "TWITTER_FLEX_FLOW_SID=${{ env.TWITTER_FLEX_FLOW_SID }}" >> .env
shell: bash
- name: Add FACEBOOK_APP_SECRET
run: echo "FACEBOOK_APP_SECRET=${{ env.FACEBOOK_APP_SECRET }}" >> .env
shell: bash
Expand Down
42 changes: 0 additions & 42 deletions .github/actions/custom-actions/thailand_staging_custom/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,6 @@ runs:
with:
ssm_parameter: "STG_LINE_TH_CHANNEL_ACCESS_TOKEN"
env_variable_name: "LINE_CHANNEL_ACCESS_TOKEN"
# Set Twitter variables
- name: Set Aselo Twitter Consumer Key
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_CONSUMER_KEY"
env_variable_name: "TWITTER_CONSUMER_KEY"
- name: Set Aselo Twitter Consumer Secret
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_CONSUMER_SECRET"
env_variable_name: "TWITTER_CONSUMER_SECRET"
- name: Set helpline Twitter Access Token
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_ACCESS_TOKEN_1570374172798238722_lineth_staging"
env_variable_name: "TWITTER_ACCESS_TOKEN"
- name: Set helpline Twitter Access Secret
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_ACCESS_TOKEN_SECRET_1570374172798238722_lineth_staging"
env_variable_name: "TWITTER_ACCESS_TOKEN_SECRET"
- name: Set helpline Twitter Flex Flow SID
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "STG_TWILIO_TH_TWITTER_FLEX_FLOW_SID"
env_variable_name: "TWITTER_FLEX_FLOW_SID"
# Set Instagram variables
- name: Set Aselo Facebook App Secret
uses: "marvinpinto/action-inject-ssm-secrets@latest"
Expand All @@ -85,22 +59,6 @@ runs:
- name: Add LINE_CHANNEL_ACCESS_TOKEN
run: echo "LINE_CHANNEL_ACCESS_TOKEN=${{ env.LINE_CHANNEL_ACCESS_TOKEN }}" >> .env
shell: bash
# Append TWITTER environment variables
- name: Add TWITTER_CONSUMER_KEY
run: echo "TWITTER_CONSUMER_KEY=${{ env.TWITTER_CONSUMER_KEY }}" >> .env
shell: bash
- name: Add TWITTER_CONSUMER_SECRET
run: echo "TWITTER_CONSUMER_SECRET=${{ env.TWITTER_CONSUMER_SECRET }}" >> .env
shell: bash
- name: Add TWITTER_ACCESS_TOKEN
run: echo "TWITTER_ACCESS_TOKEN=${{ env.TWITTER_ACCESS_TOKEN }}" >> .env
shell: bash
- name: Add TWITTER_ACCESS_TOKEN_SECRET
run: echo "TWITTER_ACCESS_TOKEN_SECRET=${{ env.TWITTER_ACCESS_TOKEN_SECRET }}" >> .env
shell: bash
- name: Add TWITTER_FLEX_FLOW_SID
run: echo "TWITTER_FLEX_FLOW_SID=${{ env.TWITTER_FLEX_FLOW_SID }}" >> .env
shell: bash
# Append INSTAGRAM environment variables
- name: Add FACEBOOK_APP_SECRET
run: echo "FACEBOOK_APP_SECRET=${{ env.FACEBOOK_APP_SECRET }}" >> .env
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,10 @@
# along with this program. If not, see https://www.gnu.org/licenses/.

name: 'Zambia PRoduction release custom action'
description: 'Adds Twitter and Instagram related environment variables to the Zambia Production environment'
description: 'Adds Instagram related environment variables to the Zambia Production environment'
runs:
using: "composite"
steps:
# Set Twitter variables
- name: Set Aselo Twitter Consumer Key
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_CONSUMER_KEY"
env_variable_name: "TWITTER_CONSUMER_KEY"
- name: Set Aselo Twitter Consumer Secret
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_CONSUMER_SECRET"
env_variable_name: "TWITTER_CONSUMER_SECRET"
- name: Set helpline Twitter Access Token
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_ACCESS_TOKEN_1272835464379105280_clzambia"
env_variable_name: "TWITTER_ACCESS_TOKEN"
- name: Set helpline Twitter Access Secret
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_ACCESS_TOKEN_SECRET_1272835464379105280_clzambia"
env_variable_name: "TWITTER_ACCESS_TOKEN_SECRET"
- name: Set helpline Twitter Flex Flow SID
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "PROD_TWILIO_ZM_TWITTER_FLEX_FLOW_SID"
env_variable_name: "TWITTER_FLEX_FLOW_SID"
# Set IWF credentials
- name: Set IWF_API_USERNAME
uses: "marvinpinto/action-inject-ssm-secrets@latest"
Expand Down Expand Up @@ -75,21 +49,6 @@ runs:
ssm_parameter: "PROD_ZM_IWF_API_CHANNEL_ID"
env_variable_name: "IWF_API_CHANNEL_ID"
# Append environment variables
- name: Add TWITTER_CONSUMER_KEY
run: echo "TWITTER_CONSUMER_KEY=${{ env.TWITTER_CONSUMER_KEY }}" >> .env
shell: bash
- name: Add TWITTER_CONSUMER_SECRET
run: echo "TWITTER_CONSUMER_SECRET=${{ env.TWITTER_CONSUMER_SECRET }}" >> .env
shell: bash
- name: Add TWITTER_ACCESS_TOKEN
run: echo "TWITTER_ACCESS_TOKEN=${{ env.TWITTER_ACCESS_TOKEN }}" >> .env
shell: bash
- name: Add TWITTER_ACCESS_TOKEN_SECRET
run: echo "TWITTER_ACCESS_TOKEN_SECRET=${{ env.TWITTER_ACCESS_TOKEN_SECRET }}" >> .env
shell: bash
- name: Add TWITTER_FLEX_FLOW_SID
run: echo "TWITTER_FLEX_FLOW_SID=${{ env.TWITTER_FLEX_FLOW_SID }}" >> .env
shell: bash
- name: Add IWF_API_USERNAME
run: echo "IWF_API_USERNAME=${{ env.IWF_API_USERNAME }}" >> .env
shell: bash
Expand Down
43 changes: 1 addition & 42 deletions .github/actions/custom-actions/zambia_staging_custom/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,10 @@
# along with this program. If not, see https://www.gnu.org/licenses/.

name: 'Zambia Staging release custom action'
description: 'Adds Twitter and Instagram related environment variables to the Zambia Staging environment'
description: 'Adds Instagram related environment variables to the Zambia Staging environment'
runs:
using: "composite"
steps:
# Set Twitter variables
- name: Set Aselo Twitter Consumer Key
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_CONSUMER_KEY"
env_variable_name: "TWITTER_CONSUMER_KEY"
- name: Set Aselo Twitter Consumer Secret
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_CONSUMER_SECRET"
env_variable_name: "TWITTER_CONSUMER_SECRET"
- name: Set helpline Twitter Access Token
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_ACCESS_TOKEN_1409531855708250112_StagingZm"
env_variable_name: "TWITTER_ACCESS_TOKEN"
- name: Set helpline Twitter Access Secret
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "TWITTER_ACCESS_TOKEN_SECRET_1409531855708250112_StagingZm"
env_variable_name: "TWITTER_ACCESS_TOKEN_SECRET"
- name: Set helpline Twitter Flex Flow SID
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "STG_TWILIO_ZM_TWITTER_FLEX_FLOW_SID"
env_variable_name: "TWITTER_FLEX_FLOW_SID"
# Set IWF credentials
- name: Set IWF_API_USERNAME
uses: "marvinpinto/action-inject-ssm-secrets@latest"
Expand All @@ -60,21 +34,6 @@ runs:
ssm_parameter: "IWF_API_URL"
env_variable_name: "IWF_API_URL"
# Append environment variables
- name: Add TWITTER_CONSUMER_KEY
run: echo "TWITTER_CONSUMER_KEY=${{ env.TWITTER_CONSUMER_KEY }}" >> .env
shell: bash
- name: Add TWITTER_CONSUMER_SECRET
run: echo "TWITTER_CONSUMER_SECRET=${{ env.TWITTER_CONSUMER_SECRET }}" >> .env
shell: bash
- name: Add TWITTER_ACCESS_TOKEN
run: echo "TWITTER_ACCESS_TOKEN=${{ env.TWITTER_ACCESS_TOKEN }}" >> .env
shell: bash
- name: Add TWITTER_ACCESS_TOKEN_SECRET
run: echo "TWITTER_ACCESS_TOKEN_SECRET=${{ env.TWITTER_ACCESS_TOKEN_SECRET }}" >> .env
shell: bash
- name: Add TWITTER_FLEX_FLOW_SID
run: echo "TWITTER_FLEX_FLOW_SID=${{ env.TWITTER_FLEX_FLOW_SID }}" >> .env
shell: bash
- name: Add IWF_API_USERNAME
run: echo "IWF_API_USERNAME=${{ env.IWF_API_USERNAME }}" >> .env
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-license-header.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Validate License Headers
run: npm run license:check
5 changes: 2 additions & 3 deletions .github/workflows/deploy-all-production-accounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
outputs:
target_helplines: ${{ steps.determine-target-helplines.outputs.target_helplines }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -46,4 +46,3 @@ jobs:
with:
helplines: ${{ needs.configure.outputs.production_helplines }}
environments: '[ "PROD" ]'

5 changes: 2 additions & 3 deletions .github/workflows/deploy-all-staging-accounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
outputs:
target_helplines: ${{ steps.determine-target-helplines.outputs.target_helplines }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -46,4 +46,3 @@ jobs:
with:
helplines: ${{ needs.configure.outputs.target_helplines }}
environments: '[ "STG" ]'

6 changes: 3 additions & 3 deletions .github/workflows/deploy-multiple-accounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ jobs:
TWILIO_AUTH_TOKEN_SECRET_NAME: ${{matrix.helpline_code}}_${{matrix.environment_code}}_AUTH_TOKEN
FULL_ENVIRONMENT_NAME: ${{matrix.environment_code == 'PROD' && 'production' || matrix.environment_code == 'STG' && 'staging' || 'development'}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x
# Setup credentials to access AWS for parameters
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
steps:
# Setup credentials to access AWS for parameters
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/serverless-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
node-version: [16.x]

steps:
- name: Checkout Branch
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: npm install
- name: Run Lint
run: npm run lint --if-present
- name: Run Tests
run: npm run test
- name: Checkout Branch
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: npm install
- name: Run Lint
run: npm run lint --if-present
- name: Run Tests
run: npm run test
Loading
Loading