From 98f65c91ae97b34b5b7a2807c8799c2d45a4997d Mon Sep 17 00:00:00 2001 From: Alvin Schiller <103769832+AlvinSchiller@users.noreply.github.com> Date: Sun, 4 Feb 2024 23:41:38 +0100 Subject: [PATCH] add write permission for artifact deletion --- .github/workflows/test_docker_debian.yml | 2 ++ .github/workflows/test_docker_debian_codename_sub.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/test_docker_debian.yml b/.github/workflows/test_docker_debian.yml index 1395137a0..c775ce860 100644 --- a/.github/workflows/test_docker_debian.yml +++ b/.github/workflows/test_docker_debian.yml @@ -41,6 +41,8 @@ jobs: # Build container and run tests run: + permissions: + actions: write name: ${{ matrix.debian_codename }} strategy: fail-fast: false diff --git a/.github/workflows/test_docker_debian_codename_sub.yml b/.github/workflows/test_docker_debian_codename_sub.yml index 638612c46..8890bc24f 100644 --- a/.github/workflows/test_docker_debian_codename_sub.yml +++ b/.github/workflows/test_docker_debian_codename_sub.yml @@ -170,6 +170,8 @@ jobs: # cleanup after test execution cleanup: + permissions: + actions: write # run only if tests didn't fail: keep the artifact to make job reruns possible if: ${{ !failure() }} needs: [build, test]