Skip to content

Commit

Permalink
Removing twitter keys from actions (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
janorivera authored Oct 27, 2023
1 parent 22b47d6 commit cdc4469
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 208 deletions.
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

0 comments on commit cdc4469

Please sign in to comment.