Skip to content

Commit

Permalink
Added Authorisation
Browse files Browse the repository at this point in the history
  • Loading branch information
eedygreen committed Oct 29, 2024
1 parent e618686 commit 45345e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy_mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
environment: mainnet
environment: mainnet
permissions:
contents: read
id-token: write
Expand All @@ -31,10 +31,10 @@ jobs:
AWS_REGION: '${{ secrets.AWS_REGION }}'
AWS_MAINNET: '${{ secrets.AWS_MAINNET }}'
steps:
- name: Authorised User only
run: |
- name: Authorised User only
run: |
if [[ ! " tcar121293 eedygreen MakMuftic akchainsafe mpetrun5 " =~ " ${{ github.actor }} " ]]; then
echo "You are not authorized to deploy to mainnet."
echo "You are not authorized to deploy to mainnet!"
exit 1
fi
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy_mainnet_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
environment: mainnet
environment: mainnet
permissions:
contents: read
id-token: write
Expand All @@ -29,10 +29,10 @@ jobs:
AWS_REGION: '${{ secrets.AWS_REGION }}'
AWS_MAINNET: '${{ secrets.AWS_MAINNET }}'
steps:
- name: Authorised User only
run: |
- name: Authorised User only
run: |
if [[ ! " tcar121293 eedygreen MakMuftic akchainsafe mpetrun5 " =~ " ${{ github.actor }} " ]]; then
echo "You are not authorized to deploy to mainnet."
echo "You are not authorized to deploy to mainnet!"
exit 1
fi
Expand Down

0 comments on commit 45345e9

Please sign in to comment.