Skip to content

Commit f7ebec2

Browse files
committed
ci: harden github actions checkout with persist-credentials
1 parent 7e73582 commit f7ebec2

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/docs-preview-deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3434
with:
35+
persist-credentials: false
3536
token: '${{secrets.GITHUB_TOKEN}}'
3637

3738
- name: Configure Firebase deploy target

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
17-
- uses: angular/dev-infra/github-actions/google-internal-tests@4a09f9588769980eacb41fcc76e2c76d048eac42 # main
1817
with:
18+
persist-credentials: false
19+
- uses: angular/dev-infra/github-actions/google-internal-tests@f826089a718c89f9ce3d6a0d3e155fbc0fb4a3de # main
20+
with:
21+
persist-credentials: false
1922
run-tests-guide-url: http://go/angular-material-presubmit
2023
github-token: ${{ secrets.GITHUB_TOKEN }}
2124
sync-config: ./.ng-dev/google-sync-config.json

.github/workflows/preview-deploy-dev-app.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ jobs:
2727
if: ${{ github.event.workflow_run.conclusion == 'success' }}
2828
steps:
2929
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
30-
30+
with:
31+
persist-credentials: false
3132
- name: Configure Firebase deploy target
3233
run: |
3334
# We can use `npx` as the Firebase deploy actions uses it too.

0 commit comments

Comments
 (0)