Skip to content

Commit de02f61

Browse files
committed
ci: least-privilege token: read by default, packages: write for the push jobs
1 parent cc4d183 commit de02f61

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/build_push.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
tags:
88
- 'v*'
99
name: Build and Publish Docker Image
10+
# Read-only by default; only the jobs that push to ghcr.io get packages: write.
11+
permissions:
12+
contents: read
1013
env:
1114
IMAGE: ghcr.io/obolnetwork/goteth
1215
jobs:
@@ -24,6 +27,9 @@ jobs:
2427
arch: arm64
2528
runner: ubuntu-24.04-arm
2629
runs-on: ${{ matrix.runner }}
30+
permissions:
31+
contents: read
32+
packages: write
2733
steps:
2834
- uses: actions/checkout@v3
2935
with:
@@ -72,6 +78,8 @@ jobs:
7278
needs: build-docker
7379
runs-on: ubuntu-24.04
7480
name: Merge Docker Manifests
81+
permissions:
82+
packages: write
7583
steps:
7684
- name: Download digests
7785
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2

0 commit comments

Comments
 (0)