diff --git a/.github/workflows/update_btfhub.yaml b/.github/workflows/update_btfhub.yaml index 622a472..0000411 100644 --- a/.github/workflows/update_btfhub.yaml +++ b/.github/workflows/update_btfhub.yaml @@ -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 @@ -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