From aa5f1ca93963ee8cb1fa750e3348ea53bbacb183 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Thu, 26 Oct 2023 12:20:46 +0300 Subject: [PATCH] Improve CI workflow --- .github/workflows/ci.yml | 3 +++ .github/workflows/perfecto.yml | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 209e1142b..25ba1f849 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,9 @@ on: jobs: Perfecto: + permissions: + contents: read + pull-requests: write strategy: matrix: image: [ 'ol7', 'ol8', 'ol9'] diff --git a/.github/workflows/perfecto.yml b/.github/workflows/perfecto.yml index 5b99cd8d4..cb9d4b7de 100644 --- a/.github/workflows/perfecto.yml +++ b/.github/workflows/perfecto.yml @@ -9,7 +9,7 @@ on: jobs: Perfecto: - name: Perfecto (${{github.event.inputs.image}}) + name: Perfecto (${{inputs.image}}) runs-on: ubuntu-latest steps: @@ -26,7 +26,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Run Perfecto docker image - uses: docker://ghcr.io/essentialkaos/perfecto:${{github.event.inputs.image}} + uses: docker://ghcr.io/essentialkaos/perfecto:${{inputs.image}} with: args: --version @@ -37,5 +37,5 @@ jobs: - name: Run Perfecto check env: - IMAGE: ghcr.io/essentialkaos/perfecto:${{github.event.inputs.image}} + IMAGE: ghcr.io/essentialkaos/perfecto:${{inputs.image}} run: ./perfecto-container -A PF20 $(git diff --name-status origin/master | tr '\t' ' ' | grep -Ev '(^D| tests/)' | grep '\.spec' | rev | cut -f1 -d' ' | rev | sort)