Skip to content

Commit

Permalink
Use version tags for greenbone actions
Browse files Browse the repository at this point in the history
Using commit hashes is only required for third-party GitHub actions, so
using version tags for our own actions makes them easier to keep up to
date.
  • Loading branch information
timopollmeier authored and greenbonebot committed Jan 9, 2025
1 parent 2c27134 commit b172bee
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install and check with black, pylint and pontos.version
uses: greenbone/actions/lint-python@027c80b4a1e454af192f93aa55cb2bc58ce44b66 #v3.27.7
uses: greenbone/actions/lint-python@v3
with:
packages: pontos tests
python-version: ${{ matrix.python-version }}
Expand All @@ -42,7 +42,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install python, poetry and dependencies
uses: greenbone/actions/poetry@027c80b4a1e454af192f93aa55cb2bc58ce44b66 #v3.27.7
uses: greenbone/actions/poetry@v3
with:
python-version: ${{ matrix.python-version }}
- name: Run unit tests
Expand All @@ -61,7 +61,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run mypy
uses: greenbone/actions/mypy-python@027c80b4a1e454af192f93aa55cb2bc58ce44b66 #v3.27.7
uses: greenbone/actions/mypy-python@v3
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -73,7 +73,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install and calculate and upload coverage to codecov.io
uses: greenbone/actions/coverage-python@027c80b4a1e454af192f93aa55cb2bc58ce44b66 #v3.27.7
uses: greenbone/actions/coverage-python@v3
with:
python-version: "3.10"
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -84,7 +84,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install python, poetry and dependencies
uses: greenbone/actions/poetry@027c80b4a1e454af192f93aa55cb2bc58ce44b66 #v3.27.7
uses: greenbone/actions/poetry@v3
- name: Check version
run: |
poetry run pontos-version verify current
2 changes: 1 addition & 1 deletion .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Report Conventional Commits
uses: greenbone/actions/conventional-commits@027c80b4a1e454af192f93aa55cb2bc58ce44b66 #v3.27.7
uses: greenbone/actions/conventional-commits@v3
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Dependency Review'
uses: greenbone/actions/dependency-review@027c80b4a1e454af192f93aa55cb2bc58ce44b66 #v3.27.7
uses: greenbone/actions/dependency-review@v3
2 changes: 1 addition & 1 deletion .github/workflows/deploy-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python
uses: greenbone/actions/poetry@027c80b4a1e454af192f93aa55cb2bc58ce44b66 #v3.27.7
uses: greenbone/actions/poetry@v3
with:
python-version: "3.10"
install-dependencies: "false"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
- name: Install poetry and dependencies
uses: greenbone/actions/poetry@027c80b4a1e454af192f93aa55cb2bc58ce44b66 #v3.27.7
uses: greenbone/actions/poetry@v3
with:
python-version: "3.10"
- name: Build Documentation
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sbom-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
contents: write
steps:
- name: 'SBOM upload'
uses: greenbone/actions/sbom-upload@027c80b4a1e454af192f93aa55cb2bc58ce44b66 #v3.27.7
uses: greenbone/actions/sbom-upload@v3

0 comments on commit b172bee

Please sign in to comment.