|
7 | 7 | matrix:
|
8 | 8 | python-version: ['3.8', '3.9', '3.10', '3.11']
|
9 | 9 | steps:
|
| 10 | + - name: Harden Runner |
| 11 | + uses: step-security/harden-runner@18bf8ad2ca49c14cbb28b91346d626ccfb00c518 # v2.1.0 |
| 12 | + with: |
| 13 | + egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs |
| 14 | + |
10 | 15 | - name: Checkout code
|
11 |
| - uses: actions/checkout@v2 |
| 16 | + uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.0 |
12 | 17 |
|
13 | 18 | - name: Setup Python
|
14 |
| - uses: actions/setup-python@v2 |
| 19 | + uses: actions/setup-python@75f3110429a8c05be0e1bf360334e4cced2b63fa # v2.3.3 |
15 | 20 | with:
|
16 | 21 | python-version: ${{ matrix.python-version }}
|
17 | 22 |
|
18 | 23 | - name: Install the framework
|
19 | 24 | run: python -m pip install -e .
|
20 | 25 |
|
21 | 26 | - name: Setup Go
|
22 |
| - uses: actions/setup-go@v2 |
| 27 | + uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0 |
23 | 28 | with:
|
24 | 29 | go-version: '1.16'
|
25 | 30 |
|
26 | 31 | - name: Run HTTP conformance tests
|
27 |
| - uses: GoogleCloudPlatform/functions-framework-conformance/[email protected] |
| 32 | + uses: GoogleCloudPlatform/functions-framework-conformance/action@c52662e612b2685a027b1c3e02224306517722fc # v1.6.0 |
28 | 33 | with:
|
29 | 34 | version: 'v1.6.0'
|
30 | 35 | functionType: 'http'
|
|
33 | 38 | cmd: "'functions-framework --source tests/conformance/main.py --target write_http --signature-type http'"
|
34 | 39 |
|
35 | 40 | - name: Run event conformance tests
|
36 |
| - uses: GoogleCloudPlatform/functions-framework-conformance/[email protected] |
| 41 | + uses: GoogleCloudPlatform/functions-framework-conformance/action@c52662e612b2685a027b1c3e02224306517722fc # v1.6.0 |
37 | 42 | with:
|
38 | 43 | version: 'v1.6.0'
|
39 | 44 | functionType: 'legacyevent'
|
|
42 | 47 | cmd: "'functions-framework --source tests/conformance/main.py --target write_legacy_event --signature-type event'"
|
43 | 48 |
|
44 | 49 | - name: Run CloudEvents conformance tests
|
45 |
| - uses: GoogleCloudPlatform/functions-framework-conformance/[email protected] |
| 50 | + uses: GoogleCloudPlatform/functions-framework-conformance/action@c52662e612b2685a027b1c3e02224306517722fc # v1.6.0 |
46 | 51 | with:
|
47 | 52 | version: 'v1.6.0'
|
48 | 53 | functionType: 'cloudevent'
|
|
51 | 56 | cmd: "'functions-framework --source tests/conformance/main.py --target write_cloud_event --signature-type cloudevent'"
|
52 | 57 |
|
53 | 58 | - name: Run HTTP conformance tests declarative
|
54 |
| - uses: GoogleCloudPlatform/functions-framework-conformance/[email protected] |
| 59 | + uses: GoogleCloudPlatform/functions-framework-conformance/action@c52662e612b2685a027b1c3e02224306517722fc # v1.6.0 |
55 | 60 | with:
|
56 | 61 | version: 'v1.6.0'
|
57 | 62 | functionType: 'http'
|
|
60 | 65 | cmd: "'functions-framework --source tests/conformance/main.py --target write_http_declarative'"
|
61 | 66 |
|
62 | 67 | - name: Run CloudEvents conformance tests declarative
|
63 |
| - uses: GoogleCloudPlatform/functions-framework-conformance/[email protected] |
| 68 | + uses: GoogleCloudPlatform/functions-framework-conformance/action@c52662e612b2685a027b1c3e02224306517722fc # v1.6.0 |
64 | 69 | with:
|
65 | 70 | version: 'v1.6.0'
|
66 | 71 | functionType: 'cloudevent'
|
|
69 | 74 | cmd: "'functions-framework --source tests/conformance/main.py --target write_cloud_event_declarative'"
|
70 | 75 |
|
71 | 76 | - name: Run HTTP concurrency tests declarative
|
72 |
| - uses: GoogleCloudPlatform/functions-framework-conformance/[email protected] |
| 77 | + uses: GoogleCloudPlatform/functions-framework-conformance/action@c52662e612b2685a027b1c3e02224306517722fc # v1.6.0 |
73 | 78 | with:
|
74 | 79 | version: 'v1.6.0'
|
75 | 80 | functionType: 'http'
|
|
78 | 83 | cmd: "'functions-framework --source tests/conformance/main.py --target write_http_declarative_concurrent'"
|
79 | 84 |
|
80 | 85 | - name: Run Typed tests declarative
|
81 |
| - uses: GoogleCloudPlatform/functions-framework-conformance/[email protected] |
| 86 | + uses: GoogleCloudPlatform/functions-framework-conformance/action@c52662e612b2685a027b1c3e02224306517722fc # v1.6.0 |
82 | 87 | with:
|
83 | 88 | version: 'v1.6.0'
|
84 | 89 | functionType: 'http'
|
|
0 commit comments