Skip to content

Commit 650b242

Browse files
chore: pin actions to SHA, fix permissions in create-release, add OpenSSF badge (#246)
Agent-Logs-Url: https://github.com/fabiocaccamo/python-fontbro/sessions/8da9bd64-323d-497f-9423-a47c9f8792fa Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: fabiocaccamo <1035294+fabiocaccamo@users.noreply.github.com>
1 parent cd19d41 commit 650b242

5 files changed

Lines changed: 19 additions & 15 deletions

File tree

.github/workflows/create-release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Create release
22

3+
permissions: {}
4+
35
on:
46
push:
57
tags:
@@ -10,24 +12,25 @@ jobs:
1012
runs-on: ubuntu-latest
1113
# environment: release
1214
permissions:
15+
contents: write
1316
id-token: write
1417

1518
steps:
1619
- name: Checkout
17-
uses: actions/checkout@v6
20+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1821

1922
- name: Extract release notes
2023
id: extract-release-notes
21-
uses: ffurrer2/extract-release-notes@v3
24+
uses: ffurrer2/extract-release-notes@273da39a24fb7db106a35526c8162815faffd31d # v3
2225

2326
- name: Create release
24-
uses: ncipollo/release-action@v1
27+
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1
2528
with:
2629
body: ${{ steps.extract-release-notes.outputs.release_notes }}
2730
token: ${{ secrets.WORKFLOWS_CREATE_RELEASE_TOKEN }}
2831

2932
- name: Set up Python
30-
uses: actions/setup-python@v6
33+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
3134
with:
3235
python-version: '3.x'
3336
cache: 'pip'
@@ -39,7 +42,7 @@ jobs:
3942
python -m build
4043
4144
- name: Publish on PyPI
42-
uses: pypa/gh-action-pypi-publish@release/v1
45+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
4346
with:
4447
packages-dir: dist/
4548
# password: ${{ secrets.WORKFLOWS_PUBLISH_TO_PYPI_TOKEN }}

.github/workflows/pre-commit-autoupdate.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
auto-update:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v6
19-
- uses: actions/setup-python@v6
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
19+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
2020
with:
2121
python-version: '3.x'
22-
- uses: browniebroke/pre-commit-autoupdate-action@main
23-
- uses: peter-evans/create-pull-request@v8
22+
- uses: browniebroke/pre-commit-autoupdate-action@d5663279643bd228226e60a4fe4fa9efc30c03eb # main
23+
- uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8
2424
with:
2525
token: ${{ secrets.GITHUB_TOKEN }}
2626
branch: update/pre-commit-hooks

.github/workflows/test-package.yml

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

2424
steps:
2525

26-
- uses: actions/checkout@v6
26+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2727

2828
- name: Set up Python ${{ matrix.python-version }}
29-
uses: actions/setup-python@v6
29+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
3030
with:
3131
python-version: ${{ matrix.python-version }}
3232
cache: 'pip'
@@ -49,7 +49,7 @@ jobs:
4949
coverage xml -o ./coverage.xml
5050
5151
- name: Upload coverage to Codecov
52-
uses: codecov/codecov-action@v6
52+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
5353
with:
5454
token: ${{ secrets.CODECOV_TOKEN }}
5555
fail_ci_if_error: false

.github/workflows/update-data.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
name: Update resources
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v6
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1717

1818
- name: Set up Python
19-
uses: actions/setup-python@v6
19+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
2020
with:
2121
python-version: '3.x'
2222

@@ -37,7 +37,7 @@ jobs:
3737
pre-commit run --files fontbro/data/unicode-blocks.json fontbro/data/unicode-scripts.json
3838
3939
- name: Commit data
40-
uses: test-room-7/action-update-file@v2
40+
uses: test-room-7/action-update-file@be6fb6d9c59d5ec4b56542f2e8ad2516a99e3402 # v2
4141
with:
4242
file-path: |
4343
fontbro/data/unicode-blocks.json

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
[![](https://img.shields.io/codacy/grade/dd3a046db4b14b988a2f1fcfbfaa51eb?logo=codacy)](https://www.codacy.com/app/fabiocaccamo/python-fontbro)
1111
[![](https://img.shields.io/badge/code%20style-black-000000.svg?logo=python&logoColor=black)](https://github.com/psf/black)
1212
[![](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
13+
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/fabiocaccamo/python-fontbro/badge)](https://securityscorecards.dev/viewer/?uri=github.com/fabiocaccamo/python-fontbro)
1314

1415
# python-fontbro
1516
friendly font operations on top of `fontTools`. :billed_cap:

0 commit comments

Comments
 (0)