Skip to content

Commit eb8bfef

Browse files
Merge branch 'main' into patch-1
2 parents 9139885 + 6213d6b commit eb8bfef

283 files changed

Lines changed: 721 additions & 362 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/android.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
matrix_architecture: ${{ steps.export-result.outputs.matrix_architecture }}
2828
matrix_python_version: ${{ steps.export-result.outputs.matrix_python_version }}
2929
steps:
30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3
3131
with:
3232
submodules: false
3333
- name: Use expanded matrix
@@ -52,15 +52,15 @@ jobs:
5252
python_version: ${{ fromJson(needs.prepare_matrix.outputs.matrix_python_version) }}
5353
exclude:
5454
# Do not attempt to use arm64 on Windows or Linux.
55-
- os: windows-latest
55+
- os: windows-2022
5656
architecture: arm64
5757
- os: ubuntu-22.04
5858
architecture: arm64
5959
# Do not attempt to use x64 on Mac.
6060
- os: macos-15
6161
architecture: x64
6262
steps:
63-
- uses: lukka/get-cmake@latest
63+
- uses: lukka/get-cmake@591817e96fcad43505fb4eae36172462abb3a42e # ratchet:lukka/get-cmake@latest
6464
with:
6565
cmakeVersion: "~3.31.0"
6666
- name: setup Xcode version (macos)
@@ -91,7 +91,7 @@ jobs:
9191
echo "Enabling expanded build and test matrix."
9292
echo "USE_EXPANDED_MATRIX=1" >> $GITHUB_ENV
9393
94-
- uses: actions/checkout@v3
94+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3
9595
with:
9696
submodules: true
9797

@@ -105,18 +105,18 @@ jobs:
105105
MATRIX_ARCHITECTURE: ${{ matrix.architecture }}
106106

107107
- name: Setup python
108-
uses: actions/setup-python@v4
108+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # ratchet:actions/setup-python@v4
109109
with:
110110
python-version: ${{ matrix.python_version }}
111111
architecture: ${{ matrix.architecture }}
112112

113113
- name: Add msbuild to PATH
114114
if: startsWith(matrix.os, 'windows')
115-
uses: microsoft/setup-msbuild@v1.1
115+
uses: microsoft/setup-msbuild@34cfbaee7f672c76950673338facd8a73f637506 # ratchet:microsoft/setup-msbuild@v1.1
116116

117117
- name: Cache NDK
118118
id: cache_ndk
119-
uses: actions/cache@v3
119+
uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # ratchet:actions/cache@v3
120120
with:
121121
path: /tmp/android-ndk-r21e
122122
key: android-ndk-${{ matrix.os }}-r21e
@@ -161,7 +161,7 @@ jobs:
161161
162162
- name: Cache ccache files
163163
id: cache_ccache
164-
uses: actions/cache@v3
164+
uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # ratchet:actions/cache@v3
165165
with:
166166
path: ccache_dir
167167
key: dev-test-ccache-${{ env.MATRIX_UNIQUE_NAME }}

.github/workflows/build-report.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@ jobs:
2626
if: ${{ matrix.test_set == 'firestore' }}
2727
run: sleep 300
2828
- name: Setup python
29-
uses: actions/setup-python@v4
29+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # ratchet:actions/setup-python@v4
3030
with:
3131
python-version: 3.9
32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3
3333
with:
3434
fetch-depth: 0
3535
- name: Install Desktop SDK prerequisites
36-
uses: nick-invision/retry@v2
36+
uses: nick-invision/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # ratchet:nick-invision/retry@v2
3737
with:
3838
timeout_minutes: 15
3939
max_attempts: 3
4040
command: |
4141
python3 scripts/gha/install_prereqs_desktop.py --gha_build
4242
python3 -m pip install requests python-dateutil progress attrs
4343
- name: Fetch GitHub jobs (with retry)
44-
uses: nick-invision/retry@v2
44+
uses: nick-invision/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # ratchet:nick-invision/retry@v2
4545
with:
4646
timeout_minutes: 20
4747
max_attempts: 3
@@ -53,7 +53,7 @@ jobs:
5353
fi
5454
python3 scripts/gha/report_build_status.py --token ${{ github.token }} --days ${{ env.numDays }} --write_cache build_status_short.cache ${extra_flags}
5555
- name: Fetch extended GitHub jobs (with retry)
56-
uses: nick-invision/retry@v2
56+
uses: nick-invision/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # ratchet:nick-invision/retry@v2
5757
with:
5858
timeout_minutes: 80
5959
max_attempts: 3
@@ -103,7 +103,7 @@ jobs:
103103
run: |
104104
cat comment.md
105105
- name: Update GitHub issue (with retry)
106-
uses: nick-invision/retry@v2
106+
uses: nick-invision/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # ratchet:nick-invision/retry@v2
107107
with:
108108
timeout_minutes: 5
109109
max_attempts: 3

.github/workflows/checks.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
pull_request:
55
types: [opened, reopened, synchronize, labeled, unlabeled]
66

7-
permissions: write-all
7+
permissions:
8+
contents: read
89

910
env:
1011
triggerLabelFull: "tests-requested: full"
@@ -21,11 +22,11 @@ jobs:
2122
file_format_check:
2223
runs-on: ubuntu-22.04
2324
steps:
24-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3
2526
with:
2627
submodules: false
2728
- name: Setup python
28-
uses: actions/setup-python@v4
29+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # ratchet:actions/setup-python@v4
2930
with:
3031
python-version: 3.9
3132
- name: Install prerequisites
@@ -43,24 +44,30 @@ jobs:
4344
check_integration_test_labels:
4445
# This check fails if integration tests are queued, in progress, or failed.
4546
runs-on: ubuntu-22.04
47+
permissions:
48+
contents: read
49+
pull-requests: read
4650
steps:
47-
- uses: docker://agilepathway/pull-request-label-checker:latest
51+
- uses: docker://index.docker.io/agilepathway/pull-request-label-checker@sha256:14f5f3dfda922496d07d53494e2d2b42885165f90677a1c03d600059b7706a61 # ratchet:docker://agilepathway/pull-request-label-checker:latest
4852
with:
4953
none_of: "${{ env.statusLabelInProgress }},${{ env.statusLabelFailed }},${{ env.triggerLabelFull }},${{ env.triggerLabelQuick }}"
5054
repo_token: ${{ github.token }}
5155

5256
generated_docs_check:
5357
# This check succeeds if Doxygen documentation generates without errors.
5458
runs-on: ubuntu-22.04
59+
permissions:
60+
contents: read
61+
pull-requests: write
5562
steps:
56-
- uses: lukka/get-cmake@latest
63+
- uses: lukka/get-cmake@591817e96fcad43505fb4eae36172462abb3a42e # ratchet:lukka/get-cmake@latest
5764
with:
5865
cmakeVersion: "~3.31.0"
59-
- uses: actions/checkout@v3
66+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3
6067
with:
6168
submodules: false
6269
- name: Setup python
63-
uses: actions/setup-python@v4
70+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # ratchet:actions/setup-python@v4
6471
with:
6572
python-version: 3.9
6673
- name: Install prerequisites
@@ -95,7 +102,7 @@ jobs:
95102
# Check for Google copyright in each file.
96103
runs-on: ubuntu-22.04
97104
steps:
98-
- uses: actions/checkout@v3
105+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3
99106
with:
100107
submodules: false
101108
- name: Run check_copyright.sh
@@ -107,7 +114,7 @@ jobs:
107114
# Check that the readme was updated, unless the PR has a specific label set (env.skipReleaseNotesLabel).
108115
runs-on: ubuntu-22.04
109116
steps:
110-
- uses: actions/checkout@v3
117+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3
111118
# Skip this if the PR has the skipReleaseNotes label or if it's a merge to other than main.
112119
if: ${{!contains(github.event.pull_request.labels.*.name, env.skipReleaseNotesLabel) && (github.event.pull_request.base.ref == 'main')}}
113120
with:

.github/workflows/checks_secure.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Checks (secure)
22
# These are run on base branch with read/write access.
33

44
on:
5+
# This trigger is only safe-ish to use if steps are gated behind the
6+
# action-has-permission check.
7+
# zizmor: ignore[dangerous-triggers]
58
pull_request_target:
69
types: [synchronize]
710

@@ -19,19 +22,19 @@ jobs:
1922
steps:
2023
- name: Check user permission
2124
id: check
22-
uses: scherermichael-oss/action-has-permission@1.0.6
25+
uses: scherermichael-oss/action-has-permission@136e061bfe093832d87f090dd768e14e27a740d3 # ratchet:scherermichael-oss/action-has-permission@1.0.6
2326
# This action sets outputs.has-permission to '1' or ''
2427
with:
2528
required-permission: write
2629
env:
2730
GITHUB_TOKEN: ${{ github.token }}
28-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3
2932
if: steps.check.outputs.has-permission != 1 || github.event.pull_request.head.repo.full_name != github.repository
3033
with:
3134
submodules: false
3235
- name: Setup python
3336
if: steps.check.outputs.has-permission != 1 || github.event.pull_request.head.repo.full_name != github.repository
34-
uses: actions/setup-python@v4
37+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # ratchet:actions/setup-python@v4
3538
with:
3639
python-version: 3.9
3740
- name: Install prerequisites

0 commit comments

Comments
 (0)