Skip to content

Commit a7a7bd4

Browse files
authored
GitHub Workflows security hardening (#1894)
* build: harden continuous-integration.yml permissions Signed-off-by: Alex <[email protected]> * build: harden website.yml permissions Signed-off-by: Alex <[email protected]> --------- Signed-off-by: Alex <[email protected]>
1 parent 02aee9c commit a7a7bd4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
concurrency:
1313
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1414
cancel-in-progress: true
15+
permissions:
16+
contents: read # to fetch code (actions/checkout)
1517
jobs:
1618
lint-build:
1719
name: "Lint & Build"

.github/workflows/website.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ on:
44
push:
55
branches:
66
- docs
7+
permissions: {}
78
jobs:
89
build:
10+
permissions:
11+
contents: write
912
name: Build & Deploy
1013
runs-on: ubuntu-20.04
1114
steps:

0 commit comments

Comments
 (0)