We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
r/w
contents
1 parent 748bd1b commit f20ebd4Copy full SHA for f20ebd4
roles/github/templates/generic.yml.j2
@@ -4,7 +4,7 @@ jobs:
4
%% format_file_name(workflow.file_name) %%:
5
runs-on: %% github_runs_on %%
6
permissions:
7
- contents: write
+ contents: %% 'write' if 'KAYOBE_AUTOMATION_PR_TYPE' in workflow.arguments | flatten else 'read' %%
8
packages: %% 'read' if github_registry_url == 'ghcr.io' else 'none' %%
9
pull-requests: %% 'write' if 'KAYOBE_AUTOMATION_PR_TYPE' in workflow.arguments | flatten else 'none' %%
10
container:
0 commit comments