Skip to content

Commit 9b749ef

Browse files
authored
Revert "[chore] add default permissions block to workflows (#959)" (#966)
This reverts commit 683a141.
1 parent bc584e6 commit 9b749ef

25 files changed

+2
-104
lines changed

.github/workflows/base-ci-goreleaser.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Reusable GoReleaser CI workflow
22

3-
permissions:
4-
contents: read
5-
63
on:
74
workflow_call:
85
inputs:
@@ -67,7 +64,6 @@ jobs:
6764
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6865
with:
6966
fetch-depth: 0
70-
persist-credentials: false
7167

7268
- name: Setup QEMU
7369
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
@@ -268,8 +264,6 @@ jobs:
268264
steps:
269265
- name: Checkout
270266
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
271-
with:
272-
persist-credentials: false
273267

274268
- name: Setup QEMU
275269
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0

.github/workflows/base-package-tests.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Package Tests
22

3-
permissions:
4-
contents: read
5-
63
on:
74
workflow_call:
85
inputs:
@@ -28,8 +25,6 @@ jobs:
2825
steps:
2926
- name: Checkout
3027
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31-
with:
32-
persist-credentials: false
3328

3429
- name: Download built artifacts
3530
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0

.github/workflows/base-release.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Reusable release workflow
22

3-
permissions:
4-
contents: read
5-
63
on:
74
workflow_call:
85
inputs:
@@ -45,7 +42,6 @@ jobs:
4542
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4643
with:
4744
fetch-depth: 0
48-
persist-credentials: false
4945

5046
- uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2
5147

@@ -158,7 +154,6 @@ jobs:
158154
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
159155
with:
160156
fetch-depth: 0
161-
persist-credentials: false
162157

163158
- uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2
164159

.github/workflows/builder-release.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
name: Release Builder
2-
3-
permissions:
4-
contents: read
5-
62
on:
73
push:
84
tags:
@@ -26,7 +22,6 @@ jobs:
2622
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2723
with:
2824
fetch-depth: 0
29-
persist-credentials: false
3025
- name: Push cmd/builder Tag
3126
run: |
3227
tag="cmd/builder/${{ github.ref_name }}"
@@ -42,7 +37,6 @@ jobs:
4237
repository: "open-telemetry/opentelemetry-collector"
4338
ref: ${{ github.ref_name }}
4439
path: ".core"
45-
persist-credentials: false
4640
- name: Copy Dockerfile to Core Repo directory
4741
run: cp cmd/builder/Dockerfile .core/cmd/builder/Dockerfile
4842
- uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2

.github/workflows/builder-testbuild.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: CI - Builder
22

3-
permissions:
4-
contents: read
5-
63
on:
74
merge_group:
85
push:
@@ -38,14 +35,12 @@ jobs:
3835
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3936
with:
4037
fetch-depth: 0
41-
persist-credentials: false
4238
- name: Checkout Core Repo
4339
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4440
with:
4541
fetch-depth: 0
4642
repository: "open-telemetry/opentelemetry-collector"
4743
path: ".core"
48-
persist-credentials: false
4944
- name: Copy Dockerfile to Core Repo directory
5045
run: cp cmd/builder/Dockerfile .core/cmd/builder/Dockerfile
5146
- uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2

.github/workflows/changelog.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
name: Changelog
77

8-
permissions:
9-
contents: read
10-
118
on:
129
pull_request:
1310
types: [opened, synchronize, reopened, labeled, unlabeled]
@@ -31,11 +28,10 @@ jobs:
3128
PR_HEAD: ${{ github.event.pull_request.head.sha }}
3229

3330
steps:
34-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+
- uses: actions/checkout@v4
3532
with:
3633
fetch-depth: 0
37-
persist-credentials: false
38-
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
34+
- uses: actions/setup-go@v5
3935
with:
4036
go-version: "~1.24"
4137
cache: false

.github/workflows/ci-goreleaser-contrib.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: CI - Contrib - GoReleaser
22

3-
permissions:
4-
contents: read
5-
63
on:
74
merge_group:
85
push:

.github/workflows/ci-goreleaser-core.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: CI - Core - GoReleaser
22

3-
permissions:
4-
contents: read
5-
63
on:
74
merge_group:
85
push:

.github/workflows/ci-goreleaser-ebpf-profiler.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: CI - eBPF Profiler - GoReleaser
22

3-
permissions:
4-
contents: read
5-
63
on:
74
merge_group:
85
push:

.github/workflows/ci-goreleaser-k8s.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: CI - k8s - GoReleaser
22

3-
permissions:
4-
contents: read
5-
63
on:
74
merge_group:
85
push:

.github/workflows/ci-goreleaser-otlp.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: CI - OTLP - GoReleaser
22

3-
permissions:
4-
contents: read
5-
63
on:
74
merge_group:
85
push:

.github/workflows/ci.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: CI - Binaries
22

3-
permissions:
4-
contents: read
5-
63
on:
74
merge_group:
85
push:
@@ -19,7 +16,6 @@ jobs:
1916
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2017
with:
2118
fetch-depth: 0
22-
persist-credentials: false
2319

2420
- name: Setup Go
2521
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0

.github/workflows/fossa.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16-
with:
17-
persist-credentials: false
1816

1917
- uses: fossas/fossa-action@3ebcea1862c6ffbd5cf1b4d0bd6b3fe7bd6f2cac # v1.7.0
2018
with:

.github/workflows/msi-tests.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: MSI Tests
22

3-
permissions:
4-
contents: read
5-
63
on:
74
workflow_call:
85
inputs:
@@ -23,8 +20,6 @@ jobs:
2320
steps:
2421
- name: Checkout
2522
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26-
with:
27-
persist-credentials: false
2823

2924
- name: Download built artifacts
3025
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0

.github/workflows/opampsupervisor-release.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
name: Release OpAMP supervisor
2-
3-
permissions:
4-
contents: read
5-
62
on:
73
push:
84
tags:
@@ -26,7 +22,6 @@ jobs:
2622
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2723
with:
2824
fetch-depth: 0
29-
persist-credentials: false
3025
- name: Push cmd/opampsupervisor Tag
3126
run: |
3227
tag="cmd/opampsupervisor/${{ github.ref_name }}"
@@ -42,7 +37,6 @@ jobs:
4237
repository: "open-telemetry/opentelemetry-collector-contrib"
4338
ref: ${{ github.ref_name }}
4439
path: ".contrib"
45-
persist-credentials: false
4640
- name: Copy Dockerfile to Contrib Repo directory
4741
run: cp cmd/opampsupervisor/Dockerfile .contrib/cmd/opampsupervisor/Dockerfile
4842
- uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2

.github/workflows/opampsupervisor-testbuild.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: CI - OpAMP supervisor
22

3-
permissions:
4-
contents: read
5-
63
on:
74
merge_group:
85
push:
@@ -36,14 +33,12 @@ jobs:
3633
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3734
with:
3835
fetch-depth: 0
39-
persist-credentials: false
4036
- name: Checkout Core Repo
4137
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4238
with:
4339
fetch-depth: 0
4440
repository: "open-telemetry/opentelemetry-collector-contrib"
4541
path: ".contrib"
46-
persist-credentials: false
4742
- name: Copy Dockerfile to Core Repo directory
4843
run: cp cmd/opampsupervisor/Dockerfile .contrib/cmd/opampsupervisor/Dockerfile
4944
- uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2

.github/workflows/package-test.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Package Tests - Contrib
22

3-
permissions:
4-
contents: read
5-
63
on:
74
schedule:
85
- cron: "0 2 * * *" # every day at 2am UTC

.github/workflows/release-contrib.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Release Contrib
22

3-
permissions:
4-
contents: read
5-
63
on:
74
push:
85
tags: ["v*"]

.github/workflows/release-core.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Release Core
22

3-
permissions:
4-
contents: read
5-
63
on:
74
push:
85
tags: ["v*"]

.github/workflows/release-ebpf-profiler.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Release eBPF Profiler
22

3-
permissions:
4-
contents: read
5-
63
on:
74
push:
85
tags: ["v*"]

.github/workflows/release-k8s.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Release k8s
22

3-
permissions:
4-
contents: read
5-
63
on:
74
push:
85
tags: ["v*"]

.github/workflows/release-otlp.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Release OTLP
22

3-
permissions:
4-
contents: read
5-
63
on:
74
push:
85
tags: ["v*"]

.github/workflows/shellcheck.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
name: Shellcheck lint
2-
3-
permissions:
4-
contents: read
5-
62
on:
73
merge_group:
84
push:
@@ -16,8 +12,6 @@ jobs:
1612
runs-on: ubuntu-latest
1713
steps:
1814
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19-
with:
20-
persist-credentials: false
2115
- name: Run ShellCheck
2216
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # 2.0.0
2317
env:

.github/workflows/stale.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
name: "Close stale issues and pull requests"
2-
3-
permissions:
4-
contents: read
5-
62
on:
73
workflow_dispatch:
84
schedule:

.github/workflows/update-version.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
name: Update Version in Distributions and Prepare PR
2-
3-
permissions:
4-
contents: read
5-
62
on:
73
workflow_dispatch:
84
inputs:
@@ -27,8 +23,6 @@ jobs:
2723
steps:
2824
- name: Checkout repository
2925
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
30-
with:
31-
persist-credentials: false
3226

3327
- name: Run bump-versions.sh
3428
run: |

0 commit comments

Comments
 (0)