Skip to content

Commit

Permalink
Set appropriate actions permissions for build job.
Browse files Browse the repository at this point in the history
  • Loading branch information
damianh committed Nov 19, 2024
1 parent b352003 commit f8578d8
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 f8578d8

Please sign in to comment.