-
Notifications
You must be signed in to change notification settings - Fork 72
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
Documentation misses authorisation for Artifact Registry #354
Comments
+1
A bug I encountered on console. |
…peline (#356) Hi maintainers. This PR is based on #354 Found an issue that when deploying to App engine via github actions for standard environment, you get logs with this error `reason: generic::permission_denied: failed to fetch manifest: generic::permission_denied` which is due to `Artifact Registry Reader` Permission missing from service account used. I did not encounter this issue for flexible environment. Tested with following configurations `deploy.yaml` ( github workflow ) ``` name: Deploy to GAE on: # Triggers the workflow on push or pull request events but only for the main branch push: branches: [ main ] jobs: deploy: name: Deploying to Google Cloud runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: 'Auth GCP' uses: 'google-github-actions/auth@v2' with: credentials_json: '${{ secrets.GCP_DEPLOY }}' - id: deploy name: Deploy to App Engine uses: google-github-actions/deploy-appengine@v2 with: deliverables: app.yaml project_id: ${{ secrets.GCP_PROJECT }} - name: Test output run: 'curl "${{ steps.deploy.outputs.version_url }}"' ``` `app.yaml` ``` service: default runtime: nodejs18 env: standard instance_class: F1 env_variables: NODE_ENV: production PORT: 8080 inbound_services: - warmup automatic_scaling: min_instances: 1 max_instances: 2 target_cpu_utilization: 0.75 handlers: - url: /.* script: auto secure: always redirect_http_response_code: 301 ``` Signed-off-by: Bahroze Ali <[email protected]>
Fixed by #356 |
TL;DR
Due to GCP migration to Artifact Registry, on new projects one needs to add the Artifact Registry Reader permission to the service account. This is not mentioned in the documentation (README.md).
Expected behavior
The gha to run with the permissions mentioned in the documentation.
Observed behavior
On a new project, which uses Artifact Registry for temp image, the build fails using the permissions mentioned in the documentation.
Adding Artifact Registry Reader solved the failure. All build succesfully.
Action YAML
Log output
Additional information
The documentation list 4 permissions to grant to the gha service account. It should also include Artifact Registry Reader.
The text was updated successfully, but these errors were encountered: