Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
ci: Changed service account (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
guyarb authored Feb 10, 2022
1 parent 04ba2cf commit 6c11080
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/update_btfhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@ jobs:
distro: [ ubuntu, debian, centos, amazon, fedora ]

steps:
- name: Check permissions
shell: bash
if: ${{ github.event_name != 'schedule' }}
run: |
array=(${{secrets.ALLOWED_PROD_DEPLOY_USERS}})
if [[ ! " ${array[*]} " =~ " ${{ github.actor }} " ]]; then
echo "::error ::'${{ github.actor }}' is not allowed to run this action!"
exit 1
fi
- name: Fetch code
uses: actions/checkout@v2

Expand All @@ -34,7 +24,7 @@ jobs:
- uses: google-github-actions/setup-gcloud@v0
with:
project_id: seekret
service_account_key: ${{ secrets.PROD_GCR_SA_KEY }}
service_account_key: ${{ secrets.GCR_SERVICE_ACCOUNT_KEY }}
export_default_credentials: true

- name: Set up Cloud SDK
Expand Down

0 comments on commit 6c11080

Please sign in to comment.