Skip to content

Commit c7e9f87

Browse files
authored
Merge pull request #630 from splunk/dev/BJ/DVPL-12487-update-pin-gh-actions
DVPL-12477: Update and pin all GitHub Actions to commits instead of tags
2 parents 0a16aee + 5166207 commit c7e9f87

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
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@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
1313
- name: Set up Python
14-
uses: actions/setup-python@v4
14+
uses: actions/setup-python@9322b3ca74000aeb2c01eb777b646334015ddd72
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@d417ba7e7683fa9104c42abe611c1f2c93c0727d
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@de65e23aa2b7e23d713bb51fbfcb6d502f8667d8
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@d417ba7e7683fa9104c42abe611c1f2c93c0727d
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@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
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@9322b3ca74000aeb2c01eb777b646334015ddd72
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

docker-compose.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.6'
2-
31
services:
42
splunk:
53
image: "splunk/splunk:${SPLUNK_VERSION}"
@@ -11,9 +9,9 @@ services:
119
- SPLUNK_PASSWORD=changed!
1210
- SPLUNK_APPS_URL=https://github.com/splunk/sdk-app-collection/releases/download/v1.1.0/sdkappcollection.tgz
1311
ports:
14-
- 8000:8000
15-
- 8088:8088
16-
- 8089:8089
12+
- "8000:8000"
13+
- "8088:8088"
14+
- "8089:8089"
1715
healthcheck:
1816
test: ['CMD', 'curl', '-f', 'http://localhost:8000']
1917
interval: 5s

0 commit comments

Comments
 (0)