Skip to content

Commit 9816c8c

Browse files
authored
Use dedicated secret to get audit-log (#18)
1 parent 721e8d4 commit 9816c8c

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/build-deploy-backend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ jobs:
135135
- name: Get approval actor from audit log
136136
id: get-approver
137137
env:
138-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
138+
GH_TOKEN: ${{ secrets.READ_AUDIT_LOG }}
139139
OWNER: kosli-dev
140140
REPO: github-release-example
141141
WORKFLOW_RUN_ID: ${{ github.run_id }}

secrets/gh-repo-read-audit-log.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
secret-name: READ_AUDIT_LOG
2+
secret-expire: 2026-04-14
3+
secret-updated: 2025-04-14
4+
secret-updated-by: tore
5+
secret-type: gh-repo
6+
is-secret: true
7+
secret-usage: Used to read Organisation audit log
8+
9+
update-instructions:
10+
Go to the Developer's Github profile
11+
-> Settings
12+
-> Developer settings
13+
-> Personal access tokens
14+
-> New fine-grained personal access token
15+
-> Generate new token
16+
Token name: github-release-example-audit-log
17+
Resource owner: kosli-dev
18+
Expiration: one year
19+
Description: Read audit log
20+
Repository access: Only select repositories - kosli-dev/github-release-example
21+
Permissions:
22+
Organization permissions - Administration - Access: Read-only
23+
24+
25+
Go to https://github.com/kosli-dev/server/settings/secrets/actions
26+
under <Repository secrets>

0 commit comments

Comments
 (0)