Skip to content

Commit

Permalink
Set more restrictive permissions. (#2151)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-edmonds-dd committed Sep 12, 2024
1 parent cc909eb commit 2eaf844
Show file tree
Hide file tree
Showing 11 changed files with 46 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
pull-requests: 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
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: docs

permissions:
contents: write

on:
push:
branches:
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
@@ -1,5 +1,9 @@
name: Prepare release

permissions:
contents: write
pull-requests: write

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

permissions:
contents: write
attestations: write
pull-requests: write

on:
release:
types:
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

on:
pull_request:
types: [closed]
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Configuration for https://github.com/actions/stale

name: "Stale issues and pull requests"

permissions:
contents: write
issues: write
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: "packages@datadoghq.com"
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 2eaf844

Please sign in to comment.