Skip to content

Commit 91de698

Browse files
authored
Use specific versions of GitHub runners and actions (#370)
Google's terms for allowing the use of GitHub Actions on Google-owned repositories requires that third-party actions be referenced using a specific commit, not a tagged release or a branch name. They also recommend that GitHub-hosted runners be referenced by fixed versions and not "-latest". (Internal doc link: go/github-actions#actions) The SHAs for GitHub Actions in this commit were obtained using frizbee. The runner versions equivalent to the "-latest" runners are based on the table at https://github.com/actions/runner-images
1 parent 5f99e8a commit 91de698

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
jobs:
2323
pytest:
2424
name: Pytest
25-
runs-on: ubuntu-latest
25+
runs-on: ubuntu-22.04
2626
strategy:
2727
matrix:
2828
cirq-version:
@@ -31,8 +31,8 @@ jobs:
3131
- 'next'
3232
fail-fast: false
3333
steps:
34-
- uses: actions/checkout@v2
35-
- uses: actions/setup-python@v2
34+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
35+
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
3636
with:
3737
python-version: '3.10'
3838
- name: Install dependencies
@@ -60,10 +60,10 @@ jobs:
6060
6161
nbformat:
6262
name: Notebook formatting
63-
runs-on: ubuntu-latest
63+
runs-on: ubuntu-22.04
6464
steps:
65-
- uses: actions/checkout@v2
66-
- uses: actions/setup-python@v2
65+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
66+
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
6767
with:
6868
python-version: '3.10'
6969
- name: Doc check

0 commit comments

Comments
 (0)