build: harden docker-image.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>
This commit is contained in:
Alex 2022-11-03 23:36:53 +02:00
parent c8a4b6ae00
commit 2d00514e22

View File

@ -9,6 +9,9 @@ on:
tags:
- 'v*'
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
push_to_registry:
if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'