You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-08-10 22:31:50 +02:00
Add minimum token permissions for all github workflow files (#6950)
See https://github.com/open-telemetry/sig-security/issues/148 for details. Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
86640ceae0
commit
e97ee25f2e
2
.github/workflows/benchmark.yml
vendored
2
.github/workflows/benchmark.yml
vendored
@@ -12,6 +12,8 @@ env:
|
||||
DEFAULT_GO_VERSION: "~1.24.0"
|
||||
jobs:
|
||||
benchmark:
|
||||
permissions:
|
||||
contents: write # required for pushing to gh-pages branch
|
||||
name: Benchmarks
|
||||
runs-on: equinix-bare-metal
|
||||
steps:
|
||||
|
7
.github/workflows/close-stale.yml
vendored
7
.github/workflows/close-stale.yml
vendored
@@ -5,10 +5,13 @@ on:
|
||||
- cron: "8 5 * * *" # arbitrary time not to DDOS GitHub
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
|
||||
|
2
.github/workflows/links-fail-fast.yml
vendored
2
.github/workflows/links-fail-fast.yml
vendored
@@ -36,8 +36,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: changedfiles
|
||||
if: ${{needs.changedfiles.outputs.files}}
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
|
2
.github/workflows/links.yml
vendored
2
.github/workflows/links.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
||||
check-links:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write # required for creating issues from link checker reports
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
2
.github/workflows/markdown.yml
vendored
2
.github/workflows/markdown.yml
vendored
@@ -12,6 +12,8 @@ permissions: read-all
|
||||
|
||||
jobs:
|
||||
lint-markdown:
|
||||
permissions:
|
||||
issues: write # required for creating issues from markdown lint reports
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
|
Reference in New Issue
Block a user