Skip to content

Commit c820f5b

Browse files
committed
Clarify part of permissions
1 parent 8ce2809 commit c820f5b

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.github/workflows/build-image-test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
name: Build Dockerfile if changed and run smoke tests
44

5-
on: [pull_request]
5+
on:
6+
pull_request:
7+
8+
permissions: {}
69

710
env:
811
IMAGE_TAG: pr-test

.github/workflows/build-image.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ permissions:
1515

1616
jobs:
1717
docker:
18+
permissions:
19+
# for docker/build-push-action to publish docker image
20+
packages: write
21+
1822
runs-on: ubuntu-latest
1923
steps:
2024
- name: Checkout code

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@ on:
1414
- .pre-commit-hooks.yaml
1515
# Ignore paths
1616
- '!tests/**'
17+
1718
permissions:
1819
contents: read
1920

2021
jobs:
2122
release:
23+
permissions:
24+
# for cycjimmy/semantic-release-action to create a release
25+
contents: write
26+
# for cycjimmy/semantic-release-action to write comments to issues
27+
issues: write
28+
2229
name: Release
2330
runs-on: ubuntu-latest
2431
steps:

0 commit comments

Comments
 (0)