Skip to content

Commit f20ebd4

Browse files
authored
feat: set r/w permissions for contents
1 parent 748bd1b commit f20ebd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/github/templates/generic.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
%% format_file_name(workflow.file_name) %%:
55
runs-on: %% github_runs_on %%
66
permissions:
7-
contents: write
7+
contents: %% 'write' if 'KAYOBE_AUTOMATION_PR_TYPE' in workflow.arguments | flatten else 'read' %%
88
packages: %% 'read' if github_registry_url == 'ghcr.io' else 'none' %%
99
pull-requests: %% 'write' if 'KAYOBE_AUTOMATION_PR_TYPE' in workflow.arguments | flatten else 'none' %%
1010
container:

0 commit comments

Comments
 (0)