Skip to content

Commit 952685f

Browse files
build: guard branch-manager against forks and harden checkout (#34006)
Restores if: github.event.repository.fork == false in .github/workflows/assistant-to-the-branch-manager.yml and adds persist-credentials: false to actions/checkout in .github/workflows/google-internal-tests.yml.
1 parent 14c7944 commit 952685f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/assistant-to-the-branch-manager.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313
jobs:
1414
assistant_to_the_branch_manager:
1515
runs-on: ubuntu-latest
16-
if: github.event.pull_request.head.repo.fork == false
16+
if: github.event.repository.fork == false
1717
steps:
1818
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
1919
with:

‎.github/workflows/google-internal-tests.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
17+
with:
18+
persist-credentials: false
1719
- uses: angular/dev-infra/github-actions/google-internal-tests@9ea19241c41afc4579f2bc6983327f6b98ef3025 # main
1820
with:
1921
run-tests-guide-url: http://go/angular-material-presubmit

0 commit comments

Comments
 (0)