From 102840204290fb6543fc5d8f8245dca1ac21c63e Mon Sep 17 00:00:00 2001 From: Alvin Schiller <103769832+AlvinSchiller@users.noreply.github.com> Date: Mon, 5 Feb 2024 00:42:47 +0100 Subject: [PATCH] add write permission for artifact deletion --- .github/workflows/test_docker_debian_codename_sub_v3.yml | 2 ++ .github/workflows/test_docker_debian_v3.yml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/test_docker_debian_codename_sub_v3.yml b/.github/workflows/test_docker_debian_codename_sub_v3.yml index 824b2b5af..bb5c3cb95 100644 --- a/.github/workflows/test_docker_debian_codename_sub_v3.yml +++ b/.github/workflows/test_docker_debian_codename_sub_v3.yml @@ -179,6 +179,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] diff --git a/.github/workflows/test_docker_debian_v3.yml b/.github/workflows/test_docker_debian_v3.yml index 673745db9..63094ced5 100644 --- a/.github/workflows/test_docker_debian_v3.yml +++ b/.github/workflows/test_docker_debian_v3.yml @@ -29,6 +29,9 @@ on: - 'packages*.txt' - 'requirements*.txt' +permissions: + actions: write + # let only one instance run the test so cache is not corrupted. # cancel already running instances as only the last run will be relevant concurrency: