Skip to content

Commit

Permalink
add write permission for artifact deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Feb 4, 2024
1 parent d19d61d commit 1028402
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test_docker_debian_codename_sub_v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test_docker_debian_v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1028402

Please sign in to comment.