Skip to content

Commit

Permalink
Fix permissions. (#2469)
Browse files Browse the repository at this point in the history
* Fix permissions.

* Fix typo.

* Fix permissions

* fix
  • Loading branch information
jack-edmonds-dd authored Sep 12, 2024
1 parent 4f0ee41 commit 07e8307
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/approved_status.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Send PR Approval Status

permissions:
contents: read
checks: write

on:
pull_request:
branches:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
name: "Ensure labels"

permissions:
contents: read
pull-requests: read

on: # yamllint disable-line rule:truthy
pull_request:
types:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: "CodeQL"

permissions:
contents: read
checks: write

on:
push:
branches: [ "master" ]
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
name: "Pull Request Labeler"

permissions:
contents: read
pull-requests: write

on:
- pull_request

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ env:
GIT_AUTHOR_EMAIL: "[email protected]"
GIT_AUTHOR_NAME: "ci.datadog-api-spec"

permissions:
contents: write
pull-requests: write

on:
workflow_dispatch:
inputs:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Release

permissions:
contents: write
pull-requests: write

env:
GIT_AUTHOR_EMAIL: "[email protected]"
GIT_AUTHOR_NAME: "ci.datadog-api-spec"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Configuration for https://github.com/actions/stale

name: "Stale issues and pull requests"

permissions:
contents: read
pull-requests: write

on:
schedule:
- cron: "0 0 * * *"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Run Tests

permissions:
contents: read

env:
GIT_AUTHOR_EMAIL: "[email protected]"
GIT_AUTHOR_NAME: "ci.datadog-api-spec"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test_integration.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Run Integration Tests

permissions:
contents: read

on:
pull_request:
types:
Expand Down

0 comments on commit 07e8307

Please sign in to comment.