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:

0 commit comments

Comments
 (0)