From 777f4e80b558091da433978b18c14e34b774aa1c Mon Sep 17 00:00:00 2001 From: Damian Hickey <57436+damianh@users.noreply.github.com> Date: Tue, 19 Nov 2024 12:04:22 +0100 Subject: [PATCH] Add packages:write permission to CI workflows. --- .github/workflow-gen/Program.cs | 6 +++++- .github/workflows/access-token-management-ci.yml | 1 + .github/workflows/identity-model-ci.yml | 1 + .github/workflows/identity-model-oidc-client-ci.yml | 1 + .github/workflows/ignore-this-ci.yml | 1 + 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflow-gen/Program.cs b/.github/workflow-gen/Program.cs index ca0ae5e5..ad5596f0 100644 --- a/.github/workflow-gen/Program.cs +++ b/.github/workflow-gen/Program.cs @@ -61,7 +61,11 @@ void GenerateCiWorkflow(Component component) .Defaults().Run("bash", component.Name) .Job; - job.Permissions(actions: Permission.Read, contents: Permission.Read, checks: Permission.Write); + job.Permissions( + actions: Permission.Read, + contents: Permission.Read, + checks: Permission.Write, + packages: Permission.Write); job.TimeoutMinutes(15); diff --git a/.github/workflows/access-token-management-ci.yml b/.github/workflows/access-token-management-ci.yml index 4e0c918b..8f095dc4 100644 --- a/.github/workflows/access-token-management-ci.yml +++ b/.github/workflows/access-token-management-ci.yml @@ -24,6 +24,7 @@ jobs: actions: read checks: write contents: read + packages: write defaults: run: shell: bash diff --git a/.github/workflows/identity-model-ci.yml b/.github/workflows/identity-model-ci.yml index d72c3d8c..ebbce5e0 100644 --- a/.github/workflows/identity-model-ci.yml +++ b/.github/workflows/identity-model-ci.yml @@ -24,6 +24,7 @@ jobs: actions: read checks: write contents: read + packages: write defaults: run: shell: bash diff --git a/.github/workflows/identity-model-oidc-client-ci.yml b/.github/workflows/identity-model-oidc-client-ci.yml index f472b793..527e82db 100644 --- a/.github/workflows/identity-model-oidc-client-ci.yml +++ b/.github/workflows/identity-model-oidc-client-ci.yml @@ -24,6 +24,7 @@ jobs: actions: read checks: write contents: read + packages: write defaults: run: shell: bash diff --git a/.github/workflows/ignore-this-ci.yml b/.github/workflows/ignore-this-ci.yml index 48591507..dce4702a 100644 --- a/.github/workflows/ignore-this-ci.yml +++ b/.github/workflows/ignore-this-ci.yml @@ -24,6 +24,7 @@ jobs: actions: read checks: write contents: read + packages: write defaults: run: shell: bash