Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit 43f9013

Browse files
authored
Fix Workflow permissions and run build always on PR (#12)
1 parent 0b758cf commit 43f9013

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,21 @@ on:
55
branches:
66
- main
77
pull_request:
8-
paths:
9-
- "src/**"
108
workflow_dispatch:
119

12-
permissions:
13-
packages: write
14-
1510
env:
1611
REGISTRY: ghcr.io
1712

1813
jobs:
1914
build:
2015
runs-on: ubuntu-latest
2116
name: Build
17+
permissions:
18+
contents: read
19+
packages: write
20+
# This is used to complete the identity challenge
21+
# with sigstore/fulcio when running outside of PRs.
22+
id-token: write
2223
steps:
2324
- uses: actions/checkout@v3
2425
- name: Login GHCR

0 commit comments

Comments
 (0)