Skip to content

Commit 7b5ff28

Browse files
authored
ci: GitHub Workflows security hardening (googleapis#10657)
Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com> Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
1 parent f923873 commit 7b5ff28

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,13 @@ on:
2121
# Run this Github Action every Tuesday at 7 AM UTC
2222
- cron: '0 7 * * 2'
2323

24+
permissions:
25+
contents: read
26+
2427
jobs:
2528
build:
29+
permissions:
30+
pull-requests: write # for googleapis/code-suggester
2631
name: Update API List PR
2732
runs-on: ubuntu-latest
2833
# don't run the workflow on forks of googleapis/google-cloud-python
@@ -55,4 +60,4 @@ jobs:
5560
title: 'docs: update the list of available APIs'
5661
message: 'docs: update the list of available APIs'
5762
branch: update-api-list-${{ steps.date.outputs.current_date }}
58-
git_dir: '.'
63+
git_dir: '.'

0 commit comments

Comments
 (0)