File tree Expand file tree Collapse file tree 6 files changed +34
-19
lines changed
Expand file tree Collapse file tree 6 files changed +34
-19
lines changed Original file line number Diff line number Diff line change 77 build :
88 runs-on : ubuntu-latest
99 steps :
10- - uses : step-security/harden-runner@int-sh
10+ - uses : step-security/harden-runner@668ad3cce4bd0191ec8fdd9868adcb7521a9dacd # int-sh
1111 with :
1212 egress-policy : audit
1313
14- - uses : crazy-max/ghaction-github-status@v4
14+ - uses : crazy-max/ghaction-github-status@6aadd1a8de5ca43c8e17a0633ef90e2178da5228 # v4.1.0
1515
16- - uses : actions/checkout@v3
16+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1717
1818 - name : npm install
1919 run : |
@@ -22,12 +22,12 @@ jobs:
2222
2323 - name : get-npm-version
2424 id : package-version
25- uses :
martinbeentjes/[email protected] 25+ uses : martinbeentjes/npm-get-version-action@3cf273023a0dda27efcd3164bdfb51908dd46a5b # v1.3.1
2626 with :
2727 path : src/exfiltration-demo
2828
2929 - name : Publish to Registry
30- uses : elgohr/Publish-Docker-Github-Action@v5
30+ uses : elgohr/Publish-Docker-Github-Action@eb53b3ec07136a6ebaed78d8135806da64f7c7e2 # v5
3131 with :
3232 name : ${{ github.repository }}/prod:latest
3333 username : ${{ github.actor }}
Original file line number Diff line number Diff line change @@ -15,21 +15,21 @@ jobs:
1515 name : Test changed-files
1616 steps :
1717 - name : Harden Runner
18- uses : step-security/harden-runner@v2
18+ uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
1919 with :
2020 disable-sudo : true
2121 egress-policy : block
2222 allowed-endpoints : >
2323 github.com:443
2424
25- - uses : actions/checkout@v4
25+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626 with :
2727 fetch-depth : 0
2828
2929 # Example 1
3030 - name : Get changed files
3131 id : changed-files
32- uses : tj-actions/changed-files@v40
32+ uses : tj-actions/changed-files@af292f1e845a0377b596972698a8598734eb2796 # v40.0.0
3333
3434 - name : List all changed files
3535 run : |
Original file line number Diff line number Diff line change @@ -14,14 +14,19 @@ jobs:
1414 runs-on : ubuntu-latest
1515 name : Test changed-files
1616 steps :
17- - uses : actions/checkout@v4
17+ - name : Harden the runner (Audit all outbound calls)
18+ uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
19+ with :
20+ egress-policy : audit
21+
22+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1823 with :
1924 fetch-depth : 0
2025
2126 # Example 1
2227 - name : Get changed files
2328 id : changed-files
24- uses : tj-actions/changed-files@v40
29+ uses : tj-actions/changed-files@af292f1e845a0377b596972698a8598734eb2796 # v40.0.0
2530
2631 - name : List all changed files
2732 run : |
Original file line number Diff line number Diff line change 66 build :
77 runs-on : ubuntu-latest
88 steps :
9- - uses : step-security/harden-runner@v2
9+ - uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
1010 with :
1111 egress-policy : audit
12- - uses : actions/checkout@v3
12+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1313 - name : npm install
1414 run : |
1515 cd ./src/exfiltration-demo
1616 npm install
1717 - name : Publish to Registry
18- uses : elgohr/Publish-Docker-Github-Action@v5
18+ uses : elgohr/Publish-Docker-Github-Action@eb53b3ec07136a6ebaed78d8135806da64f7c7e2 # v5
1919 with :
2020 name : ${{ github.repository }}/prod:latest
2121 username : ${{ github.actor }}
Original file line number Diff line number Diff line change @@ -14,19 +14,19 @@ jobs:
1414 name : Test changed-files
1515 steps :
1616 - name : Harden Runner
17- uses : step-security/harden-runner@v2
17+ uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
1818 with :
1919 disable-sudo : true
2020 egress-policy : audit
2121
22- - uses : actions/checkout@v4
22+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323 with :
2424 fetch-depth : 0
2525
2626 # Example 1
2727 - name : Get changed files
2828 id : changed-files
29- uses : tj-actions/changed-files@v35
29+ uses : tj-actions/changed-files@039afcd1024c210363c9d3fc8fd07e1f3fcf2867 # v35.9.3
3030
3131 - name : List all changed files
3232 run : |
Original file line number Diff line number Diff line change 1515 contents : read
1616 pull-requests : read
1717 steps :
18- - uses : actions/checkout@v4
18+ - name : Harden the runner (Audit all outbound calls)
19+ uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
20+ with :
21+ egress-policy : audit
22+
23+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1924
2025 - name : Wait for demo purposes
2126 run : |
@@ -40,15 +45,20 @@ jobs:
4045 contents : read
4146 pull-requests : read
4247 steps :
43- - uses : actions/checkout@v4
48+ - name : Harden the runner (Audit all outbound calls)
49+ uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
50+ with :
51+ egress-policy : audit
52+
53+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4454
4555 - name : Wait for demo purposes
4656 run : |
4757 echo "Waiting 2 minutes to allow push of new commit..."
4858 sleep 120
4959
5060 # SECURE: Gets exactly the code that was approved
51- - uses : actions/checkout@v4
61+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5262 with :
5363 ref : ${{ github.event.pull_request.head.sha }}
5464
You can’t perform that action at this time.
0 commit comments