Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit 7a4134f

Browse files
committed
Fix: Fixing permissions
1 parent 25696d8 commit 7a4134f

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/validation.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on: [push]
55
jobs:
66
validation:
77
runs-on: ubuntu-latest
8+
permissions:
9+
security-events: write
10+
packages: read
11+
actions: read
12+
contents: read
813
steps:
914
- name: Checkout
1015
uses: actions/checkout@v4
@@ -76,12 +81,14 @@ jobs:
7681
with:
7782
category: "/language:${{ matrix.language }}"
7883

79-
- name: Set Marker for Workflow Completion
80-
run: echo "codeql_complete=true" >> $GITHUB_ENV
81-
8284
Anchore:
8385
needs: validation
8486
runs-on: ubuntu-latest
87+
permissions:
88+
security-events: write
89+
packages: read
90+
actions: read
91+
contents: read
8592
steps:
8693
- name: Set up Grype installation path
8794
run: echo "$HOME/bin" >> $GITHUB_PATH
@@ -106,6 +113,11 @@ jobs:
106113
test-building:
107114
needs: [CodeQL, Anchore]
108115
runs-on: ubuntu-latest
116+
permissions:
117+
security-events: write
118+
packages: read
119+
actions: read
120+
contents: read
109121
steps:
110122
- name: Checkout repository
111123
uses: actions/checkout@v4

0 commit comments

Comments
 (0)