Skip to content

Commit

Permalink
ci: pipelines permissions (#487)
Browse files Browse the repository at this point in the history
* Add permissions on pipelines

* Remove id-token permission

* Remove repository-projects permission
  • Loading branch information
Tr00d authored Aug 10, 2023
1 parent ad51973 commit d37ecc0
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/multiframework-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ on:
workflow_dispatch:
push:
branches: [ main ]

permissions:
actions: write
checks: write
contents: read
deployments: read
issues: write
discussions: write
packages: read
pages: write
pull-requests: write
security-events: write
statuses: write

jobs:
build:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/mutation-testing.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
name: Mutation testing
on: workflow_dispatch

permissions:
actions: write
checks: write
contents: read
deployments: read
issues: write
discussions: write
packages: read
pages: write
pull-requests: write
security-events: write
statuses: write

jobs:
mutation:
name: Run mutation analysis
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/net-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ on:
pull_request:
branches: [ main ]

permissions:
actions: write
checks: write
contents: read
deployments: read
issues: write
discussions: write
packages: read
pages: write
pull-requests: write
security-events: write
statuses: write

jobs:
build:
runs-on: windows-latest
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ name: Nuget Release
on:
release:
types: [ published ]

permissions:
actions: write
checks: write
contents: read
deployments: read
issues: write
discussions: write
packages: read
pages: write
pull-requests: write
security-events: write
statuses: write

jobs:
coreSDK:
runs-on: ubuntu-latest
Expand Down

0 comments on commit d37ecc0

Please sign in to comment.