File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Github CI
22
33on :
44 push :
5- branches : [' main' ]
5+ branches : [" main" ]
66 pull_request :
77
88jobs :
@@ -11,13 +11,13 @@ jobs:
1111 strategy :
1212 fail-fast : false
1313 matrix :
14- python-version : [' 3.10' ]
14+ python-version : [" 3.10" ]
1515
1616 steps :
17- - uses : actions/checkout@v4
17+ - uses : actions/checkout@v6
1818
1919 - name : Set up Python ${{ matrix.python-version }}
20- uses : actions/setup-python@v5
20+ uses : actions/setup-python@v6
2121 with :
2222 python-version : ${{ matrix.python-version }}
2323
@@ -31,14 +31,14 @@ jobs:
3131 poetry install
3232
3333 - name : Run Lint
34- uses : astral-sh/ruff-action@v3
34+ uses : astral-sh/ruff-action@v4.0.0
3535
3636 - name : Run tests with coverage
3737 run : |
3838 poetry run pytest --cov=src/ --cov-report=xml --no-cov-on-fail
3939
4040 - name : Send coverage to CodeCov
41- uses : codecov/codecov-action@v3
41+ uses : codecov/codecov-action@v6
4242 with :
4343 token : ${{ secrets.CODECOV_TOKEN }}
4444 fail_ci_if_error : false
Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ name: Commitlint
22
33on :
44 push :
5- branches : [' main' ]
5+ branches : [" main" ]
66 pull_request :
77
88jobs :
99 commitlint :
1010 runs-on : ubuntu-latest
1111 name : Commitlint
1212 steps :
13- - uses : actions/checkout@v4
13+ - uses : actions/checkout@v6
1414
1515 - name : Run commitlint
1616 # uses: opensource-nepal/commitlint@v1
Original file line number Diff line number Diff line change 11on :
22 push :
3- branches : [' main' ]
3+ branches : [" main" ]
44
55name : release-please
66
77jobs :
88 release-please :
99 runs-on : ubuntu-latest
1010 permissions :
11+ # This job has the highest privileges, so always pin actions to a specific commit hash.
12+ # Ensure the referenced commit hash is verified and free from known vulnerabilities.
1113 id-token : write # for PYPI release
1214 contents : write
1315 pull-requests : write
1416
1517 steps :
1618 - name : Release
1719 id : release
18- uses : googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3
20+ uses : googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
1921
20- - uses : actions/checkout@v4
22+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2123 if : ${{ steps.release.outputs.release_created }}
2224
2325 - name : tag major and minor versions
@@ -32,10 +34,10 @@ jobs:
3234 git push origin v${{ steps.release.outputs.major }} -f
3335
3436 - name : Set up Python
35- uses : actions/setup-python@v5
37+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3638 if : ${{ steps.release.outputs.release_created }}
3739 with :
38- python-version : ' 3.x '
40+ python-version : " 3.10 "
3941
4042 - name : Install dependencies
4143 if : ${{ steps.release.outputs.release_created }}
4951
5052 - name : Publish package
5153 if : ${{ steps.release.outputs.release_created }}
52- uses : pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13 .0
54+ uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14 .0
Original file line number Diff line number Diff line change 1- name : ' Conventional Commitlint'
2- description : ' A GitHub Action to check conventional commit message'
1+ name : " Conventional Commitlint"
2+ description : " A GitHub Action to check conventional commit message"
33
44inputs :
55 fail_on_error :
66 description : Whether to fail the workflow if commit messages don't follow conventions.
7- default : ' true'
7+ default : " true"
88 required : false
99 verbose :
1010 description : Verbose output.
11- default : ' false'
11+ default : " false"
1212 required : false
1313 token :
1414 description : Token for fetching commits using Github API.
@@ -24,16 +24,18 @@ outputs:
2424 value : ${{ steps.commitlint.outputs.exit_code }}
2525
2626branding :
27- color : ' red'
28- icon : ' git-commit'
27+ color : " red"
28+ icon : " git-commit"
2929
3030runs :
31- using : ' composite'
31+ using : " composite"
3232 steps :
3333 - name : Install Python
34- uses : actions/setup-python@v5.1.0
34+ # Use a specific version for action dependencies
35+ # A commitlint action version should use fixed dependency versions (not mutable versions)
36+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3537 with :
36- python-version : ' 3.10'
38+ python-version : " 3.10"
3739
3840 - name : Commitlint Action
3941 id : commitlint
You can’t perform that action at this time.
0 commit comments