Skip to content

Commit

Permalink
feat(github): Force default permissions of GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
chouetz committed Aug 28, 2024
1 parent ea18bcf commit 562ffc1
Show file tree
Hide file tree
Showing 21 changed files with 41 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/add_milestone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- main
- "[0-9]+.[0-9]+.x"

permissions: {}

jobs:
add-milestone-pr:
name: Add Milestone on PR
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/backport-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- closed
- labeled

permissions: {}

jobs:
backport:
name: Backport PR
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/buildimages-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ on:
required: true
type: boolean

permissions: {}

jobs:
open-go-update-pr:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/chase_release_managers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
required: true
type: string

permissions: {}

jobs:
create_release_schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
- main
- "[0-9]+.[0-9]+.x"

permissions: {}

jobs:
CodeQL-Build:
runs-on: ubuntu-20.04
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/create_rc_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

permissions: {}

jobs:
find_release_branches:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/create_release_schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
required: true
type: string

permissions: {}


jobs:
create_release_schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cws-btfhub-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
schedule:
- cron: '30 4 * * 5' # at 4:30 UTC on Friday

permissions: {}

jobs:
generate:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/datadog-static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ on: [push]

name: Datadog Static Analysis

permissions: {}

jobs:
static-analysis:
if: github.triggering_actor != 'dependabot[bot]'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/do-not-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
branches:
- mq-working-branch-*

permissions: {}

jobs:
do-not-merge:
if: ${{ contains(github.event.*.labels.*.name, 'do-not-merge/hold') || contains(github.event.*.labels.*.name, 'do-not-merge/WIP') }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
- docs/**
- .github/workflows/docs-dev.yml

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' && true || false }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/external-contributor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
pull_request_target:
types: [opened, reopened]

permissions: {}

jobs:
external-contributor-prs:
name: Handle Fork PRs
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/go-update-commenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
# Only run on PR label events (in particular not on every commit)
types: [ labeled ]

permissions: {}

jobs:
old-versions-match:
# Only run if the PR is labeled with 'go-update'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/gohai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
paths:
- "pkg/gohai/**"

permissions: {}

jobs:
gohai_test:
strategy:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/label-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}

permissions: {}

jobs:
assign-team-label:
if: github.triggering_actor != 'dd-devflow[bot]'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- main
- "[0-9]+.[0-9]+.x"

permissions: {}

jobs:
label:
permissions:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/markdown-lint-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Check Markdown links
on:
pull_request:

permissions: {}

jobs:
markdown-link-check:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/serverless-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ concurrency:
group: ${{ github.workflow }}/PR#${{ github.event.pull_request.number }}
cancel-in-progress: true

permissions: {}

jobs:
baseline:
name: Baseline
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/serverless-binary-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
env:
SIZE_ALLOWANCE: fromJSON(1000000) # 1 MB

permissions: {}

jobs:
comment:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/serverless-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
schedule:
- cron: '0 14 * * *' # cron schedule uses UTC timezone. Run tests at the beginning of the day in US-East

permissions: {}

jobs:
test:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/slapr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# pull_request:
# types: [closed]
#
# permissions: {}
#
# jobs:
# run_slapr_datadog_agent:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit 562ffc1

Please sign in to comment.