testdriven.io: error in Github action, step of : push image

45 Views Asked by At

In the step, 'Push image' I got error like below.

denied: installation not allowed to Write organization package
Error: Process completed with exit code 1.

This issue is related with the permission. here are some guides

1

There are 1 best solutions below

0
On

I fixed error like below

name: Continuous Integration and Delivery

on: [push]

permissions: write-all

How Can I solve this with issue by controlling a single job?

I though I can solve this issue with below code but it failed. So, I changed the entire permission like the above.

jobs:

  build:
    name: Build Docker Image
    runs-on: ubuntu-latest
    permissions:
      packages: write