Skip to content

Commit 585e9a2

Browse files
authored
VLN-501: Set explicit permissions for GitHub Actions workflows (#117)
## Summary - `.github/workflows/extensibility.yaml`: Added a workflow-level `permissions` block granting only `contents: read`, which is sufficient for checkout and build steps. - `.github/workflows/promql-to-dd-go_test.yaml`: Declared workflow-level `permissions` with `contents: read` to cover checkout and test execution. - `.github/workflows/promql-to-dd-go.yaml`: Applied a workflow-level `permissions` block restricted to `contents: read` for the reusable workflow invocations.
1 parent b41e24c commit 585e9a2

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/extensibility.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
paths:
66
- 'extensibility/**'
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
extensibility-test:
1013
strategy:

.github/workflows/promql-to-dd-go.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
- '!cloud/observability/promql-to-dd-go/examples/**'
1717
- '!cloud/observability/promql-to-dd-go/helm-charts/**'
1818

19+
permissions:
20+
contents: read
21+
1922
jobs:
2023
test:
2124
uses: ./.github/workflows/promql-to-dd-go_test.yaml

.github/workflows/promql-to-dd-go_test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Test
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
test:
811
strategy:

0 commit comments

Comments
 (0)