Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ jobs:
needs: [ pre-commit, build-wheel, shellcheck, doc-tests ]
runs-on: ubuntu-slim
steps:
- uses: re-actors/alls-green@release/v1
- uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # release/v1
with:
jobs: ${{ toJSON(needs) }}
13 changes: 8 additions & 5 deletions .github/workflows/publish-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,27 @@ permissions: {}
jobs:
publish-images:
runs-on: ubuntu-latest
environment: quay.io
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just noting that this requires the secrets to be moved


steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Build - tmt
uses: redhat-actions/buildah-build@v2
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2
id: build-image-tmt
with:
image: tmt
containerfiles: ./containers/Containerfile.mini
- name: Build - tmt-all
uses: redhat-actions/buildah-build@v2
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2
id: build-image-tmt-all
with:
image: tmt-all
containerfiles: ./containers/Containerfile.full
- name: Push To quay.io - tmt
id: push-to-quay-tmt
uses: redhat-actions/push-to-registry@v2
uses: redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2
with:
image: ${{ steps.build-image-tmt.outputs.image }}
tags: ${{ steps.build-image-tmt.outputs.tags }}
Expand All @@ -32,7 +35,7 @@ jobs:
password: ${{ secrets.QUAY_TEEMTEE_SECRET }}
- name: Push To quay.io - tmt-all
id: push-to-quay-tmt-all
uses: redhat-actions/push-to-registry@v2
uses: redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2
with:
image: ${{ steps.build-image-tmt-all.outputs.image }}
tags: ${{ steps.build-image-tmt-all.outputs.tags }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ jobs:
attestations: write

steps:
- uses: actions/download-artifact@v8
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: Packages
path: dist

- name: Generate artifact attestation for sdist and wheel
uses: actions/attest-build-provenance@v4
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4
with:
subject-path: "dist/*"

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
4 changes: 2 additions & 2 deletions .github/workflows/step-build-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: ${{ inputs.ref }}
persist-credentials: false
- uses: hynek/build-and-inspect-python-package@v2
- uses: hynek/build-and-inspect-python-package@fe0a0fb1925ca263d076ca4f2c13e93a6e92a33e # v2
8 changes: 4 additions & 4 deletions .github/workflows/step-doc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:
sphinx_builder: html

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
ref: ${{ inputs.ref }}
- uses: actions/setup-python@v6
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: 3.x
- uses: astral-sh/setup-uv@v7
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with:
activate-environment: true
- name: Install tmt[docs]
Expand All @@ -45,7 +45,7 @@ jobs:
if: ${{ matrix.builder == 'lint' }}

- name: Cache linkcheck results
uses: actions/cache@v5
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
with:
path: docs/_build/linkcheck_cache.json
key: linkcheck
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/step-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:
- run: |
wget -O /usr/local/bin/hadolint https://github.com/hadolint/hadolint/releases/latest/download/hadolint-Linux-x86_64
chmod +x /usr/local/bin/hadolint
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
ref: ${{ inputs.ref }}
- uses: actions/setup-python@v6
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
# Python 3.9 is for mypy testing the lowest python version
# Python 3.13 is for ansible-lint hard-coding the python requirement
python-version: |
3.9
3.13
3.x
- uses: pre-commit/action@v3.0.1
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
10 changes: 5 additions & 5 deletions .github/workflows/step-shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:

steps:
- name: Repository checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
persist-credentials: false
ref: ${{ inputs.ref }}

- id: ShellCheck
name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@v5
uses: redhat-plumbers-in-action/differential-shellcheck@d965e66ec0b3b2f821f75c8eff9b12442d9a7d1e # v5
# Note: we do not use token here to have more control of when to upload the sarif.
# It might be incorrect to upload them for PRs.
# https://github.com/github/codeql-action/issues/3578
Expand All @@ -41,7 +41,7 @@ jobs:

- if: ${{ always() }}
name: Upload artifact with ShellCheck defects in SARIF format
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
with:
name: Differential ShellCheck SARIF
path: ${{ steps.ShellCheck.outputs.sarif }}
Expand All @@ -53,10 +53,10 @@ jobs:
permissions:
security-events: write
steps:
- uses: actions/download-artifact@v8
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: Differential ShellCheck SARIF
- uses: github/codeql-action/upload-sarif@v4
- uses: github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # v4
with:
sarif_file: ${{ needs.lint.outputs.sarif }}
if: ${{ inputs.upload_sarif }}
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ repos:
- '--rst-directives'
- 'versionadded,versionchanged'

- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: ea2eb407b4cbce87cf0d502f36578950494f5ac9 # v1.23.1
hooks:
- id: zizmor

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.10.9
hooks:
Expand Down
Loading