Skip to content

Commit 6202b53

Browse files
chore: improve OpenSSF Scorecard rating
* chore: making scorecard happy
1 parent 692a4de commit 6202b53

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v6
23+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2424

25-
- uses: actions/setup-python@v6
25+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
2626
with:
2727
python-version: "3.11"
2828
- name: Install Hatch
2929
run: |
30-
python -m pip install --upgrade hatch
30+
python -m pip install --upgrade hatch==1.15.0
3131
- name: Build release distributions
3232
run: |
3333
# NOTE: put your own distribution build steps here.
3434
hatch build
3535
3636
- name: Upload distributions
37-
uses: actions/upload-artifact@v5
37+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
3838
with:
3939
name: release-dists
4040
path: dist/
@@ -60,12 +60,12 @@ jobs:
6060

6161
steps:
6262
- name: Retrieve release distributions
63-
uses: actions/download-artifact@v6
63+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
6464
with:
6565
name: release-dists
6666
path: dist/
6767

6868
- name: Publish release distributions to PyPI
69-
uses: pypa/gh-action-pypi-publish@release/v1
69+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
7070
with:
7171
packages-dir: dist/

.github/workflows/scorecard.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ on:
1313
- cron: '21 16 * * 4'
1414
push:
1515
branches: [ "main" ]
16+
workflow_dispatch:
1617

1718
# Declare default permissions as read only.
18-
permissions: read-all
19+
permissions:
20+
contents: read
1921

2022
jobs:
2123
analysis:
@@ -34,12 +36,12 @@ jobs:
3436

3537
steps:
3638
- name: "Checkout code"
37-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
39+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
3840
with:
3941
persist-credentials: false
4042

4143
- name: "Run analysis"
42-
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
44+
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
4345
with:
4446
results_file: results.sarif
4547
results_format: sarif
@@ -64,7 +66,7 @@ jobs:
6466
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6567
# format to the repository Actions tab.
6668
- name: "Upload artifact"
67-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
69+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
6870
with:
6971
name: SARIF file
7072
path: results.sarif
@@ -73,6 +75,6 @@ jobs:
7375
# Upload the results to GitHub's code scanning dashboard (optional).
7476
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
7577
- name: "Upload to code-scanning"
76-
uses: github/codeql-action/upload-sarif@v3
78+
uses: github/codeql-action/upload-sarif@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.2.4
7779
with:
7880
sarif_file: results.sarif

.github/workflows/sync-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
python-version: ${{ matrix.python-version }}
2828
- name: Install Hatch
2929
run: |
30-
python -m pip install --upgrade hatch
30+
python -m pip install --upgrade hatch==1.15.0
3131
- name: Build distribution
3232
run: hatch build
3333
- name: configure aws credentials

.github/workflows/test-parser.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
- 'ops/parse_sdk_branch.py'
1212
- 'ops/__tests__/**'
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
test-parser:
1619
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)