Skip to content

Commit f772a58

Browse files
committed
More permission tweaking.
* pr_test_cache.yml: actions: write should not be necessary outside of clean_cache, which already specifies that. Drop it at the workflow level. * publish_docker_images.yml: move write permissions from workflow level to job level.
1 parent 662b62e commit f772a58

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/pr_tests_cache.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ env:
2727
concurrency:
2828
group: pr-test-cache-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2929
cancel-in-progress: true
30-
31-
permissions:
32-
actions: write
3330
jobs:
3431
ubuntu_22_llvm_prev_jobs:
3532
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'
@@ -167,7 +164,7 @@ jobs:
167164
needs: [ubuntu_22_llvm_current_aarch64_jobs, windows_llvm_current_jobs]
168165
runs-on: ubuntu-latest
169166
permissions:
170-
actions: write
167+
actions: write # for gh cache delete
171168
steps:
172169
- name: Checkout repo
173170
uses: actions/checkout@v4

.github/workflows/publish_docker_images.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ on:
1010

1111
permissions:
1212
contents: read
13-
packages: write
14-
attestations: write
15-
id-token: write
1613

1714
env:
1815
REGISTRY: ghcr.io/uxlfoundation
@@ -21,6 +18,10 @@ jobs:
2118

2219
publish-docker-images-x86-64:
2320
runs-on: ubuntu-latest
21+
permissions:
22+
attestations: write
23+
id-token: write
24+
packages: write
2425
steps:
2526
- name: Checkout
2627
uses: actions/checkout@v4
@@ -40,6 +41,10 @@ jobs:
4041
4142
publish-docker-images-aarch64:
4243
runs-on: ubuntu-22.04-arm
44+
permissions:
45+
attestations: write
46+
id-token: write
47+
packages: write
4348
steps:
4449
- name: Checkout
4550
uses: actions/checkout@v4

0 commit comments

Comments
 (0)