Skip to content

Commit abc91c2

Browse files
committed
ci: Update GitHub Actions permissions
1 parent 14e4019 commit abc91c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/update-a2a-types.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
check_and_update:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
1113

1214
steps:
1315
- name: Checkout code
@@ -59,7 +61,7 @@ jobs:
5961
echo "Codegen finished."
6062
6163
- name: Commit and push if generated file changed
62-
if: github.ref == 'refs/heads/main' # Or your default branch name
64+
if: github.ref == 'refs/heads/main'
6365
run: |
6466
set -euo pipefail
6567

0 commit comments

Comments
 (0)