Skip to content

Commit 5297914

Browse files
committed
Pin GH Action versions to specific commits
1 parent bbff0d6 commit 5297914

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,26 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout repo
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1313
- name: Set up Python
14-
uses: actions/setup-python@v4
14+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
1515
with:
1616
python-version: 3.9
1717
- name: Install dependencies
1818
run: pip install .
1919
- name: Build package
20-
# [TODO] We need to confirm this produces the same exact result as `python setup.py sdist`
2120
run: python -m build
2221
- name: Publish package to PyPI
23-
uses: pypa/gh-action-pypi-publish@v1.12.4
22+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
2423
with:
2524
user: __token__
2625
password: ${{ secrets.PYPI_PASSWORD }}
2726
- name: Generate API docs
2827
run: |
2928
rm -rf ./docs/_build
30-
./venv/bin/python -m tox -e docs
29+
python -m tox -e docs
3130
- name: Upload docs
32-
uses: actions/upload-artifact@v4
31+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
3332
with:
3433
name: python_sdk_docs
3534
path: docs/_build/html

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repo
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1919
- name: Set up environment variables
2020
run: cp ./.env.template ./.env
2121
- name: Run docker-compose with Splunk ${{ matrix.splunk-version }}
2222
run: SPLUNK_VERSION=${{ matrix.splunk-version }} docker compose up -d
2323
- name: Set up Python
24-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
- name: Install Python dependencies to venv

0 commit comments

Comments
 (0)