Skip to content

Commit c8e3952

Browse files
[StepSecurity] ci: Harden GitHub Actions (iterative#8496)
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent 7648e71 commit c8e3952

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/packages.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ on:
77
types: [released, prereleased]
88
workflow_dispatch:
99

10+
permissions: # added using https://github.com/step-security/secure-workflows
11+
contents: read
12+
1013
jobs:
1114
binary:
15+
permissions:
16+
contents: write # for actions/upload-release-asset to upload release asset
1217
strategy:
1318
matrix:
1419
include:

.github/workflows/tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ concurrency:
1717
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1818
cancel-in-progress: true
1919

20+
permissions: # added using https://github.com/step-security/secure-workflows
21+
contents: read
22+
2023
jobs:
2124
lint:
2225
timeout-minutes: 10

0 commit comments

Comments
 (0)