From 4ae75a7071643c82e410290b6b858a950655ef37 Mon Sep 17 00:00:00 2001 From: Jari Nippula Date: Wed, 13 Sep 2023 11:45:23 +0300 Subject: [PATCH] github action fixes Fix tiiuae-coverity-scan-image action name Updates and permissions fix for tiiuae-builder-images --- .github/workflows/tiiuae-builder-images.yaml | 12 ++++++++---- .github/workflows/tiiuae-coverity-scan-image.yaml | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tiiuae-builder-images.yaml b/.github/workflows/tiiuae-builder-images.yaml index 153ddb71f1bf..14f699106c87 100644 --- a/.github/workflows/tiiuae-builder-images.yaml +++ b/.github/workflows/tiiuae-builder-images.yaml @@ -4,32 +4,36 @@ on: # Run only manually workflow_dispatch: +permissions: + contents: read + packages: write + jobs: hw-builder-image: name: create docker builder base image runs-on: ubuntu-latest steps: - name: Checkout px4-firmware - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: px4-firmware fetch-depth: 0 - name: Docker meta id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: ghcr.io/tiiuae/px4-firmware-builder-base tags: | type=raw,value=latest type=sha - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build builder base image and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: . file: ./px4-firmware/packaging/Dockerfile.build_env_pre diff --git a/.github/workflows/tiiuae-coverity-scan-image.yaml b/.github/workflows/tiiuae-coverity-scan-image.yaml index 6b47d7f87546..a78d580c022b 100644 --- a/.github/workflows/tiiuae-coverity-scan-image.yaml +++ b/.github/workflows/tiiuae-coverity-scan-image.yaml @@ -1,4 +1,4 @@ -name: tiiuae-builder-images +name: tiiuae-coverity-scan-image on: # Run only manually