Skip to content

Commit cdba8ce

Browse files
Harden default permissions of GH actions ( - Fixes #39 - )
1 parent 2b8730a commit cdba8ce

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/Labeler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
types: [opened, reopened]
55
branches: [ master, stable ]
66

7+
# Declare default permissions as none.
8+
permissions: none
9+
710
jobs:
811
triage:
912
permissions:

.github/workflows/Tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
tags:
88
- v*
99

10+
# Declare default permissions as read only.
11+
permissions: read-all
12+
1013
jobs:
1114
BUILD:
1215
if: github.repository == 'reactive-firewall/python-repo'

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
schedule:
2121
- cron: '17 5 * * 1'
2222

23+
# Declare default permissions as read only.
24+
permissions: read-all
25+
2326
jobs:
2427
analyze:
2528
name: Analyze

0 commit comments

Comments
 (0)