Skip to content

Commit

Permalink
Set permissions to write packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
damianh committed Nov 3, 2024
1 parent 6038743 commit 6313fd4
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/WorkflowGen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ void GenerateWorkflowsForLibs()
.Paths(paths)
.Tags($"{lib}-**");

workflow.Permissions(packages: Permission.Write);

var buildJob = workflow
.Job("build")
.RunsOn(GitHubHostedRunners.UbuntuLatest)
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/aspnet-core-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
- build/**
tags:
- aspnet-core-**
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/bullseye-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
- build/**
tags:
- bullseye-**
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
dotnet-version: 8.0.x
- run: dotnet --info
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- run: ./build.ps1 build
shell: pwsh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v2
2 changes: 2 additions & 0 deletions .github/workflows/configuration-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
- build/**
tags:
- configuration-**
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
- build/**
tags:
- github-**
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/hosting-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
- build/**
tags:
- hosting-**
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lambda-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
- build/**
tags:
- lambda-**
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pulumi-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
- build/**
tags:
- pulumi-**
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/system-extensions-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
- build/**
tags:
- system-extensions-**
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/webhook-relay-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
- build/**
tags:
- webhook-relay-**
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6313fd4

Please sign in to comment.