Skip to content

Commit 7c056da

Browse files
committed
Update and pin external GH Actions in CI/CD
1 parent b39b9d5 commit 7c056da

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout source
12-
uses: actions/checkout@v3
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.7
1717
- name: Install dependencies
1818
run: pip install twine
1919
- name: Build package
2020
run: python setup.py sdist
2121
- name: Publish package to PyPI
22-
uses: pypa/gh-action-pypi-publish@v1.8.10
22+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
2323
with:
2424
user: __token__
2525
password: ${{ secrets.pypi_password }}
@@ -29,14 +29,14 @@ jobs:
2929
run: |
3030
rm -rf ./docs/_build
3131
tox -e docs
32-
- name : Docs Upload
33-
uses: actions/upload-artifact@v3
32+
- name: Docs Upload
33+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
3434
with:
3535
name: python_sdk_docs
3636
path: docs/_build/html
3737
# Test upload
3838
# - name: Publish package to TestPyPI
39-
# uses: pypa/gh-action-pypi-publish@master
39+
# uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
4040
# with:
4141
# user: __token__
4242
# password: ${{ secrets.test_pypi_password }}

.github/workflows/test.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
name: Python CI
22

3-
on:
4-
[ push, workflow_dispatch ]
3+
on: [push, workflow_dispatch]
54

65
jobs:
76
build:
8-
97
runs-on: ${{ matrix.os }}
108
strategy:
119
matrix:
1210
os:
1311
- ubuntu-latest
14-
python: [ 3.9, 3.13 ]
12+
python: [3.9, 3.13]
1513
splunk-version:
1614
- "8.1"
1715
- "8.2"
@@ -31,13 +29,13 @@ jobs:
3129

3230
steps:
3331
- name: Checkout code
34-
uses: actions/checkout@v3
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3533

3634
- name: Run docker compose
37-
run: SPLUNK_VERSION=${{matrix.splunk-version}} docker compose up -d
35+
run: SPLUNK_VERSION=${{ matrix.splunk-version }} docker compose up -d
3836

3937
- name: Setup Python
40-
uses: actions/setup-python@v4
38+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
4139
with:
4240
python-version: ${{ matrix.python }}
4341

@@ -48,4 +46,4 @@ jobs:
4846
run: tox -e py
4947
fossa-scan:
5048
uses: splunk/oss-scanning-public/.github/workflows/oss-scan.yml@main
51-
secrets: inherit
49+
secrets: inherit

0 commit comments

Comments
 (0)