Skip to content

Commit f6d762c

Browse files
authored
[ci] Pin 3rd party actions to specific hash (#7690)
* [ci] Fix permissions and don't use pull_request_target Defaults permissions to none for all workflows, and only request extra permissions when needed. Similar to facebook/react#32708, prefer the less permissive `pull_request` trigger instead. * [ci] Pin 3rd party actions to specific hash
1 parent 982b16d commit f6d762c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/analyze.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
name: bundle_analysis.json
5858

5959
- name: Download base branch bundle stats
60-
uses: dawidd6/action-download-artifact@v2
60+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
6161
if: success() && github.event.number
6262
with:
6363
workflow: analyze.yml

.github/workflows/analyze_comment.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ jobs:
1616
github.event.workflow_run.conclusion == 'success' }}
1717
steps:
1818
- name: Download base branch bundle stats
19-
uses: dawidd6/action-download-artifact@v2
19+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
2020
with:
2121
workflow: analyze.yml
2222
run_id: ${{ github.event.workflow_run.id }}
2323
name: analysis_comment.txt
2424
path: analysis_comment.txt
2525

2626
- name: Download PR number
27-
uses: dawidd6/action-download-artifact@v2
27+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
2828
with:
2929
workflow: analyze.yml
3030
run_id: ${{ github.event.workflow_run.id }}
@@ -50,7 +50,7 @@ jobs:
5050
echo "pr-number=$pr_number" >> $GITHUB_OUTPUT
5151
5252
- name: Comment
53-
uses: marocchino/sticky-pull-request-comment@v2
53+
uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728
5454
with:
5555
header: next-bundle-analysis
5656
number: ${{ steps.get-comment-body.outputs.pr-number }}

0 commit comments

Comments
 (0)