Skip to content

Commit 24f3985

Browse files
authored
Merge pull request #144 from python-project-templates/tkp/cd
Pin actions
2 parents 78406f7 + 90d03fa commit 24f3985

23 files changed

Lines changed: 79 additions & 71 deletions

.github/dependabot.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
labels:
8+
- "part: github_actions"

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- macos-latest
3737
runs-on: ${{ matrix.os }}
3838
steps:
39-
- uses: actions/checkout@v6
39+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4040

4141
- name: Prework
4242
run: |

cpp/.github/workflows/build.yaml.jinja

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
cibuildwheel: "cp312"
6060

6161
steps:
62-
- uses: actions/checkout@v6
62+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6363

6464
- uses: actions-ext/python/setup@main
6565
with:
@@ -88,20 +88,20 @@ jobs:
8888
run: make coverage
8989

9090
- name: Upload test results (Python)
91-
uses: actions/upload-artifact@v7
91+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
9292
with:
9393
name: {% raw %}test-results-${{ matrix.os }}-${{ matrix.python-version }}{% endraw %}
9494
path: junit.xml
9595
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
9696

9797
- name: Publish Unit Test Results
98-
uses: EnricoMi/publish-unit-test-result-action@v2
98+
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
9999
with:
100100
files: '**/junit.xml'
101101
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
102102

103103
- name: Upload coverage
104-
uses: codecov/codecov-action@v6
104+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
105105
with:
106106
token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %}
107107

@@ -149,7 +149,7 @@ jobs:
149149
module: {{module}}
150150
if: matrix.os == 'ubuntu-latest'
151151

152-
- uses: actions/upload-artifact@v7
152+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
153153
with:
154154
name: {% raw %}dist-${{matrix.os}}-${{matrix.python-version}}{% endraw %}
155155
path: dist

cpp/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
runs-on: ubuntu-latest
1717
if: {% raw %}${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}{% endraw %}
1818
steps:
19-
- uses: actions/checkout@v6
19+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2020
- uses: actions-ext/python/setup@main
2121

2222
- name: Download dist from build
23-
uses: actions/download-artifact@v8
23+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
2424
with:
2525
pattern: dist-ubuntu-latest-{{python_version_primary}}
2626
merge-multiple: true
@@ -44,7 +44,7 @@ jobs:
4444

4545
- run: yardang build
4646

47-
- uses: peaceiris/actions-gh-pages@v4
47+
- uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
4848
with:
4949
publish_branch: gh-pages
5050
github_token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}

cpp/.github/workflows/{% if add_wiki %}wiki.yaml{% endif %}.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
deploy:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v6
23+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2424
- run: cp README.md docs/wiki/Home.md
25-
- uses: Andrew-Chen-Wang/github-wiki-action@v5
25+
- uses: Andrew-Chen-Wang/github-wiki-action@64efa0a9436db17670a2259e0ac249d6f08bb352 # v5
2626
with:
2727
path: docs/wiki

cppjswasm/.github/workflows/build.yaml.jinja

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
node-version: [20.x]
3636

3737
steps:
38-
- uses: actions/checkout@v6
38+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3939

4040
- uses: actions-ext/python/setup@main
4141
with:
@@ -70,20 +70,20 @@ jobs:
7070
run: make coverage
7171

7272
- name: Upload test results (Python)
73-
uses: actions/upload-artifact@v7
73+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
7474
with:
7575
name: {% raw %}test-results-${{ matrix.os }}-${{ matrix.python-version }}{% endraw %}
7676
path: junit.xml
7777
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
7878

7979
- name: Publish Unit Test Results
80-
uses: EnricoMi/publish-unit-test-result-action@v2
80+
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
8181
with:
8282
files: '**/junit.xml'
8383
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
8484

8585
- name: Upload coverage
86-
uses: codecov/codecov-action@v6
86+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
8787
with:
8888
token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %}
8989

@@ -131,7 +131,7 @@ jobs:
131131
module: {{module}}
132132
if: matrix.os == 'ubuntu-latest'
133133

134-
- uses: actions/upload-artifact@v7
134+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
135135
with:
136136
name: {% raw %}dist-${{matrix.os}}-${{matrix.python-version}}{% endraw %}
137137
path: dist

cppjswasm/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
runs-on: ubuntu-latest
1717
if: {% raw %}${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}{% endraw %}
1818
steps:
19-
- uses: actions/checkout@v6
19+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2020
- uses: actions-ext/python/setup@main
2121

2222
- name: Download dist from build
23-
uses: actions/download-artifact@v8
23+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
2424
with:
2525
pattern: dist-ubuntu-latest-{{python_version_primary}}
2626
merge-multiple: true
@@ -45,7 +45,7 @@ jobs:
4545

4646
- run: yardang build
4747

48-
- uses: peaceiris/actions-gh-pages@v4
48+
- uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
4949
with:
5050
publish_branch: gh-pages
5151
github_token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}

cppjswasm/.github/workflows/{% if add_wiki %}wiki.yaml{% endif %}.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
deploy:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v6
23+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2424
- run: cp README.md docs/wiki/Home.md
25-
- uses: Andrew-Chen-Wang/github-wiki-action@v5
25+
- uses: Andrew-Chen-Wang/github-wiki-action@64efa0a9436db17670a2259e0ac249d6f08bb352 # v5
2626
with:
2727
path: docs/wiki

js/.github/workflows/build.yaml.jinja

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
node-version: [20.x]
3535

3636
steps:
37-
- uses: actions/checkout@v6
37+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3838

3939
- uses: actions-ext/python/setup@main
4040
with:
@@ -63,20 +63,20 @@ jobs:
6363
if: matrix.os == 'ubuntu-latest'
6464

6565
- name: Upload test results
66-
uses: actions/upload-artifact@v7
66+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
6767
with:
6868
name: {% raw %}test-results-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.node-version }}{% endraw %}
6969
path: '**/junit.xml'
7070
if: {% raw %}${{ always() }}{% endraw %}
7171

7272
- name: Publish Unit Test Results
73-
uses: EnricoMi/publish-unit-test-result-action@v2
73+
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
7474
with:
7575
files: '**/junit.xml'
7676
if: matrix.os == 'ubuntu-latest'
7777

7878
- name: Upload coverage
79-
uses: codecov/codecov-action@v6
79+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
8080
with:
8181
token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %}
8282

@@ -94,7 +94,7 @@ jobs:
9494
module: {{module}}
9595
if: matrix.os == 'ubuntu-latest'
9696

97-
- uses: actions/upload-artifact@v7
97+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
9898
with:
9999
name: {% raw %}dist-${{matrix.os}}{% endraw %}
100100
path: dist

js/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
runs-on: ubuntu-latest
1717
if: {% raw %}${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}{% endraw %}
1818
steps:
19-
- uses: actions/checkout@v6
19+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2020
- uses: actions-ext/python/setup@main
2121

2222
- name: Download dist from build
23-
uses: actions/download-artifact@v8
23+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
2424
with:
2525
pattern: dist-ubuntu-latest*
2626
merge-multiple: true
@@ -44,7 +44,7 @@ jobs:
4444

4545
- run: yardang build
4646

47-
- uses: peaceiris/actions-gh-pages@v4
47+
- uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
4848
with:
4949
publish_branch: gh-pages
5050
github_token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}

0 commit comments

Comments
 (0)