Skip to content

Commit 89694fe

Browse files
committed
MNT: Use hash for Action workflow versions and update if needed
1 parent 7571e73 commit 89694fe

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

.github/workflows/ci_cron_daily.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ jobs:
4949

5050
steps:
5151
- name: Check out repository
52-
uses: actions/checkout@v4
52+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
5353
with:
5454
fetch-depth: 0
5555
- name: Set up Python ${{ matrix.python }}
56-
uses: actions/setup-python@v5
56+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
5757
with:
5858
python-version: ${{ matrix.python }}
5959
- name: Install base dependencies
@@ -68,7 +68,7 @@ jobs:
6868
run: tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }}
6969
- name: Upload coverage to codecov
7070
if: ${{ contains(matrix.tox_env, '-cov') }}
71-
uses: codecov/codecov-action@v4
71+
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
7272
with:
7373
files: ./coverage.xml
7474
verbose: true

.github/workflows/ci_cron_weekly.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ jobs:
4343

4444
steps:
4545
- name: Check out repository
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
4747
with:
4848
fetch-depth: 0
4949
- name: Set up Python ${{ matrix.python }}
50-
uses: actions/setup-python@v5
50+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
5151
with:
5252
python-version: ${{ matrix.python }}
5353
- name: Install base dependencies
@@ -83,10 +83,10 @@ jobs:
8383
- arch: armv7
8484

8585
steps:
86-
- uses: actions/checkout@v4
86+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
8787
with:
8888
fetch-depth: 0
89-
- uses: uraimo/run-on-arch-action@v2
89+
- uses: uraimo/run-on-arch-action@b0ffb25eb00af00468375982384441f063da1741 # v2.7.2
9090
name: Run tests
9191
id: build
9292
with:

.github/workflows/ci_tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ jobs:
106106

107107
steps:
108108
- name: Check out repository
109-
uses: actions/checkout@v4
109+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
110110
with:
111111
fetch-depth: 0
112112
- name: Set up Python ${{ matrix.python }}
113-
uses: actions/setup-python@v5
113+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
114114
with:
115115
python-version: ${{ matrix.python }}
116116
allow-prereleases: true
@@ -126,7 +126,7 @@ jobs:
126126
run: tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }}
127127
- name: Upload coverage to codecov
128128
if: ${{ contains(matrix.tox_env, '-cov') }}
129-
uses: codecov/codecov-action@v4
129+
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
130130
with:
131131
files: ./coverage.xml
132132
verbose: true

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ jobs:
4343

4444
steps:
4545
- name: Checkout repository
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
4747

4848
# Initializes the CodeQL tools for scanning.
4949
- name: Initialize CodeQL
50-
uses: github/codeql-action/init@v3
50+
uses: github/codeql-action/init@5618c9fc1e675841ca52c1c6b1304f5255a905a0 # codeql-bundle-v2.19.0
5151
with:
5252
languages: ${{ matrix.language }}
5353
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -61,7 +61,7 @@ jobs:
6161
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
6262
# If this step fails, then you should remove it and run the build manually (see below)
6363
- name: Autobuild
64-
uses: github/codeql-action/autobuild@v3
64+
uses: github/codeql-action/autobuild@5618c9fc1e675841ca52c1c6b1304f5255a905a0 # codeql-bundle-v2.19.0
6565

6666
# ℹ️ Command-line programs to run using the OS shell.
6767
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -74,6 +74,6 @@ jobs:
7474
# ./location_of_script_within_repo/buildscript.sh
7575

7676
- name: Perform CodeQL Analysis
77-
uses: github/codeql-action/analyze@v3
77+
uses: github/codeql-action/analyze@5618c9fc1e675841ca52c1c6b1304f5255a905a0 # codeql-bundle-v2.19.0
7878
with:
7979
category: "/language:${{matrix.language}}"

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
permissions:
3333
contents: none
3434

35-
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@v1
35+
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@924441154cf3053034c6513d5e06c69d262fb9a6 # v1.13.0
3636

3737
if: (github.repository == 'astropy/regions' && (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'Build all wheels')))
3838
with:

0 commit comments

Comments
 (0)