Skip to content

Commit

Permalink
Add packages:write permission to CI workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
damianh committed Nov 19, 2024
1 parent e4c36e4 commit 777f4e8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflow-gen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/access-token-management-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
actions: read
checks: write
contents: read
packages: write
defaults:
run:
shell: bash
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/identity-model-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
actions: read
checks: write
contents: read
packages: write
defaults:
run:
shell: bash
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/identity-model-oidc-client-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
actions: read
checks: write
contents: read
packages: write
defaults:
run:
shell: bash
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ignore-this-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
actions: read
checks: write
contents: read
packages: write
defaults:
run:
shell: bash
Expand Down

0 comments on commit 777f4e8

Please sign in to comment.