Skip to content

Commit 8978237

Browse files
Merge pull request #700 from pyathena-dev/chore/pin-github-actions
Pin GitHub Actions to commit SHAs for supply chain security
2 parents 091ea14 + 8ff34fb commit 8978237

5 files changed

Lines changed: 36 additions & 14 deletions

File tree

.github/workflows/docs-trigger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
trigger-docs:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/github-script@v7
14+
- uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
1515
with:
1616
script: |
1717
await github.rest.actions.createWorkflowDispatch({

.github/workflows/docs.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ jobs:
2121
PYTHON_VERSION: '3.12'
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2525
with:
2626
fetch-depth: 0 # Fetch all history for sphinx-multiversion
2727
- name: Setup Pages
28-
uses: actions/configure-pages@v5
29-
- uses: astral-sh/setup-uv@v5
28+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
29+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
3030
with:
3131
python-version: ${{ matrix.python-version }}
3232
enable-cache: true
3333
- run: |
3434
uv sync --group dev
3535
make docs
3636
- name: Upload artifact
37-
uses: actions/upload-pages-artifact@v3
37+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
3838
with:
3939
path: './docs/_build/html'
4040

@@ -47,4 +47,4 @@ jobs:
4747
steps:
4848
- name: Deploy to GitHub Pages
4949
id: deployment
50-
uses: actions/deploy-pages@v4
50+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

.github/workflows/pinact.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Pinact
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/**'
7+
- '.github/actions/**'
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
pinact:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
17+
with:
18+
persist-credentials: false
19+
- uses: suzuki-shunsuke/pinact-action@cf51507d80d4d6522a07348e3d58790290eaf0b6 # v2.0.0
20+
with:
21+
app_id: ${{ vars.BOT_APP_ID }}
22+
app_private_key: ${{ secrets.BOT_APP_PRIVATE_KEY }}

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818

1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2222

23-
- uses: astral-sh/setup-uv@v5
23+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626
enable-cache: true
@@ -29,9 +29,9 @@ jobs:
2929
run: |
3030
uv build -v
3131
- name: Publish release distributions to PyPI
32-
uses: pypa/gh-action-pypi-publish@release/v1
32+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
3333
- name: Release
34-
uses: softprops/action-gh-release@v2
34+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
3535
with:
3636
files: |
3737
dist/*.whl

.github/workflows/test-suite.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,24 @@ jobs:
2626

2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
3030

31-
- uses: astral-sh/setup-uv@v5
31+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
3232
with:
3333
python-version: ${{ matrix.python-version }}
3434
enable-cache: true
3535
# TODO: In the case of Python 3.13+, the following error occurs, so install Python using setup-python.
3636
# ../meson.build:44:2: ERROR: Problem encountered: Cannot compile
3737
# `Python.h`. Perhaps you need to install python-dev|python-devel
38-
- uses: actions/setup-python@v5
38+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
3939
with:
4040
python-version: ${{ matrix.python-version }}
4141
if: matrix.python-version == '3.13' || matrix.python-version == '3.14'
4242
- run: |
4343
make tool
4444
4545
- name: Configure AWS credentials
46-
uses: aws-actions/configure-aws-credentials@v4
46+
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
4747
with:
4848
role-to-assume: arn:aws:iam::676287850544:role/github-actions-oidc-pyathena
4949
role-session-name: PyAthenaTestSession

0 commit comments

Comments
 (0)