Skip to content

fix: add missing permissions for pushing to ghcr #4

fix: add missing permissions for pushing to ghcr

fix: add missing permissions for pushing to ghcr #4

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
permissions:
contents: read
packages: write
attestations: write
id-token: write
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@aa33708b10e362ff993539393ff100fa93ed6a27 # v3.5.0
- name: Login to ghcr.io
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' && 'and push' || '' }}
uses: docker/build-push-action@5176d81f87c23d6fc96624dfdbcd9f3830bbe445 # v6.5.0
with:
platforms: linux/amd64,linux/arm64
push: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
# renovate: datasource=custom.gcs_connector depName=confluentinc/kafka-connect-gcs
tags: ghcr.io/kvanzuijlen/confluent-gcs-sink-connector:10.1.12
cache-from: type=gha
cache-to: type=gha,mode=max