Skip to content

Commit 9f4ee47

Browse files
authored
[CI][OSSF] Allow package write in sycl-container build (#13245)
After #13173 , we are not able to push container images. See https://github.com/intel/llvm/actions/runs/8485593107/job/23250649681 ``` ------ > pushing ghcr.io/intel/llvm/ubuntu2204_base:2f03ef85fee5e867c8250d535f561f2e52e5260c with docker: ------ ERROR: denied: installation not allowed to Write organization package Error: buildx failed with: ERROR: denied: installation not allowed to Write organization package ``` We need to update the docker images, so need to write packages. Push permission tested through non PR workflow run here: https://github.com/intel/llvm/actions/runs/8516878870
1 parent 323104f commit 9f4ee47

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/sycl-containers.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
if: github.repository == 'intel/llvm'
2929
name: Base Ubuntu 22.04 Docker image
3030
runs-on: ubuntu-22.04
31+
permissions:
32+
packages: write
3133
steps:
3234
- name: Checkout
3335
uses: actions/checkout@v4
@@ -47,6 +49,8 @@ jobs:
4749
if: github.repository == 'intel/llvm'
4850
name: Build Ubuntu Docker image
4951
runs-on: ubuntu-22.04
52+
permissions:
53+
packages: write
5054
steps:
5155
- name: Checkout
5256
uses: actions/checkout@v4
@@ -69,6 +73,8 @@ jobs:
6973
if: github.repository == 'intel/llvm'
7074
name: Intel Drivers Ubuntu 22.04 Docker image
7175
runs-on: ubuntu-22.04
76+
permissions:
77+
packages: write
7278
needs: base_image_ubuntu2204
7379
steps:
7480
- name: Checkout
@@ -107,6 +113,8 @@ jobs:
107113
if: github.repository == 'intel/llvm'
108114
name: Intel Drivers (unstable) Ubuntu 22.04 Docker image
109115
runs-on: ubuntu-22.04
116+
permissions:
117+
packages: write
110118
needs: base_image_ubuntu2204
111119
steps:
112120
- name: Checkout

0 commit comments

Comments
 (0)