File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -103,16 +103,19 @@ def _SetupGithubActions():
103103 f"""
104104 name: Build and test library
105105
106+ permissions:
107+ contents: read
108+
106109 on:
107- push:
110+ push:
108111 branches: [main]
109- pull_request:
112+ pull_request:
110113 branches: [main]
111114 types: [opened, synchronize]
112- workflow_dispatch:
115+ workflow_dispatch:
113116
114117 jobs:
115- build:
118+ build:
116119 name: Build and test library
117120 uses: { GITHUB_ORG } /.github/.github/workflows/library.yml@latest
118121 """ ,
@@ -125,15 +128,15 @@ def _SetupGithubActions():
125128 name: Prepare GH release
126129
127130 on:
128- push:
131+ push:
129132 tags: [ '*.*.*-*' ]
130133
131134 jobs:
132- release:
135+ release:
133136 name: Prepare GitHub release
134137 uses: { GITHUB_ORG } /.github/.github/workflows/release.yml@latest
135138 permissions:
136- contents: write
139+ contents: write
137140 """ ,
138141 )
139142
You can’t perform that action at this time.
0 commit comments