Skip to content

Commit bba9fa5

Browse files
naveensrinivasanandrewseguin
authored andcommitted
Pin actions to a full length commit SHA (#24647)
* build: Pin actions to a full length commit SHA - Pinned actions by SHA https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies - Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions * build: Fixed the incorrect SHA's Signed-off-by: naveensrinivasan <[email protected]> (cherry picked from commit 8ae8216)
1 parent aa61e81 commit bba9fa5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/build-dev-app.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
(github.event.action == 'labeled' && github.event.label.name == 'dev-app preview') ||
2121
(github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'dev-app preview'))
2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2.0.0
2424
- uses: ./.github/actions/yarn-install
2525

2626
- run: ./scripts/bazel/setup-remote-execution.sh
@@ -42,7 +42,7 @@ jobs:
4242
echo ${{github.event.pull_request.head.sha}} > dist/devapp/pr_sha
4343
4444
# Upload the generated dev-app archive.
45-
- uses: actions/upload-artifact@v2
45+
- uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # renovate: tag=v2.0.0
4646
with:
4747
name: devapp
4848
path: dist/devapp

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2.0.0
2121
- uses: ./.github/actions/yarn-install
2222

2323
- name: 'Download artifact from build job'
@@ -36,7 +36,7 @@ jobs:
3636
echo "::set-output name=number::$(cat ./dist/dev-app-web-pkg/pr_number)"
3737
echo "::set-output name=sha::$(cat ./dist/dev-app-web-pkg/pr_sha)"
3838
39-
- uses: FirebaseExtended/action-hosting-deploy@v0
39+
- uses: FirebaseExtended/action-hosting-deploy@276388dd6c2cde23455b30293105cc866c22282d # renovate: tag=v0.0.0
4040
id: deploy
4141
with:
4242
repoToken: '${{secrets.GITHUB_TOKEN}}'
@@ -45,7 +45,7 @@ jobs:
4545
projectId: ng-comp-dev
4646
channelId: pr-${{steps.pr_info.outputs.number}}-${{steps.pr_info.outputs.sha}}
4747

48-
- uses: marocchino/sticky-pull-request-comment@v2
48+
- uses: marocchino/sticky-pull-request-comment@39c5b5dc7717447d0cba270cd115037d32d28443 # renovate: tag=v2.0.0
4949
with:
5050
message: |
5151
Deployed dev-app to: ${{ steps.deploy.outputs.details_url }}

.github/workflows/dev-infra.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
labels:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2.0.0
1212
- uses: angular/dev-infra/github-actions/commit-message-based-labels@138ec743c342cd2a4a75443d19e0ccd47244ee07
1313
with:
1414
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}

0 commit comments

Comments
 (0)