1111 repository_dispatch :
1212 types : [ ok-to-test-command ]
1313
14+ permissions :
15+ contents : read
16+
1417jobs :
1518
1619 test-trusted :
2225 python-version : ["3.10", "3.11", "3.12", "3.13"]
2326 runs-on : ${{ matrix.os }}
2427 steps :
25- - uses : actions/checkout@v3
28+ - name : Harden the runner (Audit all outbound calls)
29+ uses : step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
30+ with :
31+ egress-policy : audit
32+
33+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2634 - name : Set up Python
27- uses : actions/setup-python@v4
35+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
2836 with :
2937 python-version : ${{ matrix.python-version }}
3038 - name : Integration Test
@@ -48,10 +56,15 @@ jobs:
4856 name : Lint
4957 runs-on : ubuntu-latest
5058 steps :
51- - uses : actions/checkout@v3
59+ - name : Harden the runner (Audit all outbound calls)
60+ uses : step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
61+ with :
62+ egress-policy : audit
63+
64+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
5265
5366 - name : Set up Python
54- uses : actions/setup-python@v4
67+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
5568 with :
5669 python-version : ' 3.x'
5770
@@ -83,13 +96,18 @@ jobs:
8396 steps :
8497
8598 # Check out merge commit
99+ - name : Harden the runner (Audit all outbound calls)
100+ uses : step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
101+ with :
102+ egress-policy : audit
103+
86104 - name : Fork based /ok-to-test checkout
87- uses : actions/checkout@v4
105+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
88106 with :
89107 ref : ${{ github.event.client_payload.pull_request.head.sha }}
90108
91109 - name : Set up Python
92- uses : actions/setup-python@v4
110+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
93111 with :
94112 python-version : ' 3.x'
95113
@@ -112,7 +130,7 @@ jobs:
112130 python example/example.py
113131
114132 # Update check run called "integration-fork" on the forked PR
115- - uses : actions/github-script@v6
133+ - uses : actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
116134 id : update-check-run
117135 if : ${{ always() }}
118136 env :
0 commit comments