Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/_scan-codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ on:
permissions:
actions: read
contents: read
packages: read
security-events: write

jobs:
Expand All @@ -42,8 +43,14 @@ jobs:
runs-on: ${{ inputs.os }}
timeout-minutes: ${{ inputs.timeout-minutes }}
permissions:
# only required for workflows in private repositories
actions: read
contents: read

# required to fetch internal or private CodeQL packs
packages: read

# required for all workflows
security-events: write

strategy:
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/dotnet-package-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,9 @@ on:
required: false

permissions:
actions: read
contents: write
packages: write
pull-requests: write
security-events: write

jobs:
ci-cd:
Expand Down Expand Up @@ -109,15 +107,3 @@ jobs:
uses: ./.github/workflows/_dependency-review.yml
with:
harden-runner-policy: ${{ inputs.harden-runner-policy }}

scan-codeql:
permissions:
actions: read
contents: read
security-events: write
uses: ./.github/workflows/_scan-codeql.yml
with:
harden-runner-policy: ${{ inputs.harden-runner-policy }}
os: ${{ inputs.os }}
dotnet-version: ${{ inputs.dotnet-version }}
language: csharp
14 changes: 0 additions & 14 deletions .github/workflows/dotnet-package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ on:
required: false

permissions:
actions: read
contents: write
packages: write
pull-requests: read
security-events: write

jobs:
ci-cd:
Expand All @@ -84,15 +82,3 @@ jobs:
is-release-branch: ${{ inputs.is-release-branch }}
force-release: ${{ inputs.force-release }}
secrets: inherit

scan-codeql:
permissions:
actions: read
contents: read
security-events: write
uses: ./.github/workflows/_scan-codeql.yml
with:
harden-runner-policy: ${{ inputs.harden-runner-policy }}
os: ${{ inputs.os }}
dotnet-version: ${{ inputs.dotnet-version }}
language: csharp
14 changes: 0 additions & 14 deletions .github/workflows/dotnet-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@ on:
required: false

permissions:
actions: read
contents: read
pull-requests: write
security-events: write

jobs:
ci-cd:
Expand Down Expand Up @@ -100,15 +98,3 @@ jobs:
uses: ./.github/workflows/_dependency-review.yml
with:
harden-runner-policy: ${{ inputs.harden-runner-policy }}

scan-codeql:
permissions:
actions: read
contents: read
security-events: write
uses: ./.github/workflows/_scan-codeql.yml
with:
harden-runner-policy: ${{ inputs.harden-runner-policy }}
os: ${{ inputs.os }}
dotnet-version: ${{ inputs.dotnet-version }}
language: csharp
Loading