Skip to content

Commit e78ca9e

Browse files
authored
Merge pull request #30 from step-security-bot/stepsecurity_remediation_1732859316
[StepSecurity] ci: Harden GitHub Actions
2 parents 8a9b1ff + cfc48b7 commit e78ca9e

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.github/workflows/changelog.yaml

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

1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919
with:
2020
fetch-depth: 0
2121

2222
- name: Generate changelog
23-
uses: orhun/git-cliff-action@v4
23+
uses: orhun/git-cliff-action@e364f07989916ffb9f50d7ef6c0a8c48082c2792 # v4.4.1
2424
with:
2525
config: ./.config/cliff.toml
2626
args: --latest --prepend

.github/workflows/coveralls.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88

99
steps:
1010
- name: Checkout code
11-
uses: actions/checkout@v4
11+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1212

1313
- name: Set up Python
14-
uses: actions/setup-python@v5
14+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
1515
with:
1616
python-version: "3.10"
1717
cache: 'pip'

.github/workflows/deploy_sphinx.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212

1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616

1717
- name: Set up Python
18-
uses: actions/setup-python@v5
18+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
1919
with:
2020
python-version: '3.10'
2121
cache: 'pip'
@@ -37,7 +37,7 @@ jobs:
3737
3838
- name: Deploy to GitHub Pages
3939
if: success()
40-
uses: peaceiris/actions-gh-pages@v3
40+
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
4141
with:
4242
github_token: ${{ secrets.GITHUB_TOKEN }}
4343
publish_dir: ./docs/build/html

.github/workflows/ossf_scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434
retention-days: 5
3535

3636
- name: "Upload to code-scanning"
37-
uses: github/codeql-action/upload-sarif@v3
37+
uses: github/codeql-action/upload-sarif@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
3838
with:
3939
sarif_file: results.sarif

.github/workflows/release_pypi.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616

17-
- uses: actions/setup-python@v5
17+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
1818
with:
1919
python-version: "3.10"
2020

@@ -34,7 +34,7 @@ jobs:
3434
pytest tests
3535
3636
- name: Upload distributions
37-
uses: actions/upload-artifact@v4
37+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
3838
with:
3939
name: release-dists
4040
path: dist/
@@ -51,12 +51,12 @@ jobs:
5151

5252
steps:
5353
- name: Retrieve release distributions
54-
uses: actions/download-artifact@v4
54+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
5555
with:
5656
name: release-dists
5757
path: dist/
5858

5959
- name: Publish release distributions to PyPI
60-
uses: pypa/gh-action-pypi-publish@release/v1
60+
uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc # release/v1
6161
with:
6262
packages-dir: dist/

0 commit comments

Comments
 (0)