Skip to content

Commit 53521bf

Browse files
committed
workflows: Set top-level permissions
This changes very little but it does mean any jobs added in future have to be explicit about the permissions they need. This also makes OSSF scorecard happier. Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
1 parent 6b03ef4 commit 53521bf

4 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/_test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ on:
22
workflow_call:
33
# Permissions inherited from caller workflow
44

5+
permissions: {}
56

67
jobs:
78
tests:

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ on:
88
pull_request:
99
workflow_dispatch:
1010

11-
permissions:
12-
contents: read
11+
permissions: {}
1312

1413
jobs:
1514
test:

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches: [ develop ]
88
schedule:
99
- cron: '30 0 * * 2'
10+
workflow_dispatch:
11+
12+
permissions: {}
1013

1114
jobs:
1215
analyze:

.github/workflows/specification-version-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ on:
22
schedule:
33
- cron: "0 13 * * *"
44
workflow_dispatch:
5+
56
name: Specification version check
7+
8+
permissions: {}
9+
610
jobs:
711
# Get the version of the TUF specification the project states it supports
812
get-supported-tuf-version:

0 commit comments

Comments
 (0)