Skip to content

Commit

Permalink
Merge pull request #57 from DuendeSoftware/dh/actions-permissions
Browse files Browse the repository at this point in the history
Set appropriate actions permissions for build job.
  • Loading branch information
damianh authored Nov 19, 2024
2 parents b352003 + f8578d8 commit 071e152
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflow-gen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ void GenerateCiWorkflow(Component component)
.Defaults().Run("bash", component.Name)
.Job;

job.Permissions(actions: Permission.Read, contents: Permission.Read, checks: Permission.Write);

job.TimeoutMinutes(15);

job.Step()
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/access-token-management-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
actions: read
checks: write
contents: read
defaults:
run:
shell: bash
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/identity-model-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
actions: read
checks: write
contents: read
defaults:
run:
shell: bash
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/identity-model-oidc-client-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
actions: read
checks: write
contents: read
defaults:
run:
shell: bash
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ignore-this-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
actions: read
checks: write
contents: read
defaults:
run:
shell: bash
Expand Down

0 comments on commit 071e152

Please sign in to comment.