diff --git a/.github/actions/parse-ci-reports/README.md b/.github/actions/parse-ci-reports/README.md index 353c082..dab78ef 100644 --- a/.github/actions/parse-ci-reports/README.md +++ b/.github/actions/parse-ci-reports/README.md @@ -41,7 +41,7 @@ Parse native reports, publish summaries and retain selected files in one artifac ## Usage ```yaml -- uses: hoverkraft-tech/ci-github-python/.github/actions/parse-ci-reports@f9227d0f443be4edbb7aacfc0701caaf25523f77 # fix/enforce-lint-checks +- uses: hoverkraft-tech/ci-github-python/.github/actions/parse-ci-reports@5f7a722eca203764bf066c1272fc85bc4700d35c # dependabot/github_actions/github-actions-dependencies-0daf74fb81 with: # Validated absolute project directory. # This input is required. diff --git a/.github/actions/parse-ci-reports/action.yml b/.github/actions/parse-ci-reports/action.yml index 0baa08c..98a1c85 100644 --- a/.github/actions/parse-ci-reports/action.yml +++ b/.github/actions/parse-ci-reports/action.yml @@ -25,7 +25,7 @@ runs: steps: - id: parse if: ${{ !cancelled() }} - uses: hoverkraft-tech/ci-github-common/actions/quality/parse-ci-reports@66882b24f9f13e45a6541896a5a7c638cb91c94c + uses: hoverkraft-tech/ci-github-common/actions/quality/parse-ci-reports@66882b24f9f13e45a6541896a5a7c638cb91c94c # 4.0.0 with: working-directory: ${{ inputs.directory }} report-paths: | @@ -37,7 +37,7 @@ runs: report-name: ${{ inputs.report-name }} output-format: annotations,summary,markdown - id: prepare - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 env: DIRECTORY: ${{ inputs.directory }} REPORT_FILES: ${{ steps.parse.outputs.parsed-files }} @@ -53,7 +53,7 @@ runs: if: ${{ !cancelled() }} - id: upload if: ${{ !cancelled() && steps.prepare.outputs.files != '' }} - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: ${{ steps.prepare.outputs.name }} path: ${{ steps.prepare.outputs.files }} diff --git a/.github/workflows/__release.yml b/.github/workflows/__release.yml index c0e9d84..6a7dc92 100644 --- a/.github/workflows/__release.yml +++ b/.github/workflows/__release.yml @@ -26,7 +26,7 @@ jobs: pull-requests: read steps: - id: generate-token - uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 with: client-id: ${{ vars.CI_BOT_APP_CLIENT_ID }} private-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }} diff --git a/.github/workflows/__renovate.yml b/.github/workflows/__renovate.yml index 6ff9e0b..f4244a3 100644 --- a/.github/workflows/__renovate.yml +++ b/.github/workflows/__renovate.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Generate GitHub App token id: generate-token - uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 with: client-id: ${{ vars.CI_BOT_APP_CLIENT_ID }} private-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }} @@ -22,7 +22,7 @@ jobs: permission-statuses: write permission-workflows: write - name: Run Renovate - uses: renovatebot/github-action@266fef21329c44765ad42f9dea1f01f5d2d91084 + uses: renovatebot/github-action@acdd6bda8b035c99ce59d5675816af2aa65a1774 # v46.3.14 with: token: ${{ steps.generate-token.outputs.token }} env: diff --git a/.github/workflows/__semantic-pull-request.yml b/.github/workflows/__semantic-pull-request.yml index 2b1fe88..36b014f 100644 --- a/.github/workflows/__semantic-pull-request.yml +++ b/.github/workflows/__semantic-pull-request.yml @@ -14,4 +14,4 @@ jobs: main: permissions: contents: read - uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@66882b24f9f13e45a6541896a5a7c638cb91c94c # 4.0.0 + uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@d606f77fad305ef07dfde3db5270f5e324019c97 # 4.2.4 diff --git a/.github/workflows/__shared-ci.yml b/.github/workflows/__shared-ci.yml index 719edb3..75b0813 100644 --- a/.github/workflows/__shared-ci.yml +++ b/.github/workflows/__shared-ci.yml @@ -5,7 +5,7 @@ name: Internal - Common Continuous Integration tasks permissions: {} jobs: linter: - uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@66882b24f9f13e45a6541896a5a7c638cb91c94c + uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@d606f77fad305ef07dfde3db5270f5e324019c97 # 4.2.4 permissions: contents: read statuses: write diff --git a/.github/workflows/__test-action-audit.yml b/.github/workflows/__test-action-audit.yml index cfab95d..0974b9d 100644 --- a/.github/workflows/__test-action-audit.yml +++ b/.github/workflows/__test-action-audit.yml @@ -11,7 +11,7 @@ jobs: contents: read steps: - name: Arrange - Check out the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Arrange - Install the project runtime and dependencies diff --git a/.github/workflows/__test-action-lint.yml b/.github/workflows/__test-action-lint.yml index ac15e09..f6d50a5 100644 --- a/.github/workflows/__test-action-lint.yml +++ b/.github/workflows/__test-action-lint.yml @@ -13,7 +13,7 @@ jobs: artifact-id: ${{ steps.failed-lint.outputs.report-artifact-id }} steps: - name: Arrange - Check out the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Assert - Action contract tests pass @@ -56,7 +56,7 @@ jobs: contents: read steps: - name: Assert - Download retained lint reports - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: artifact-ids: ${{ needs.lint.outputs.artifact-id }} path: ${{ runner.temp }}/lint-reports diff --git a/.github/workflows/__test-action-package-test.yml b/.github/workflows/__test-action-package-test.yml index 3abee56..5b94550 100644 --- a/.github/workflows/__test-action-package-test.yml +++ b/.github/workflows/__test-action-package-test.yml @@ -11,7 +11,7 @@ jobs: contents: read steps: - name: Arrange - Check out the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Arrange - Install the project runtime and dependencies diff --git a/.github/workflows/__test-action-parse-ci-reports.yml b/.github/workflows/__test-action-parse-ci-reports.yml index c70ba38..90ebe67 100644 --- a/.github/workflows/__test-action-parse-ci-reports.yml +++ b/.github/workflows/__test-action-parse-ci-reports.yml @@ -12,7 +12,7 @@ jobs: outputs: artifact-id: ${{ steps.report.outputs.artifact-id }} steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Assert - Action contract tests pass @@ -54,7 +54,7 @@ jobs: contents: read steps: - name: Assert - Artifact can be downloaded - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: artifact-ids: ${{ needs.reports.outputs.artifact-id }} path: ${{ runner.temp }}/downloaded-reports diff --git a/.github/workflows/__test-action-setup-python.yml b/.github/workflows/__test-action-setup-python.yml index dc3fc04..67c2ffd 100644 --- a/.github/workflows/__test-action-setup-python.yml +++ b/.github/workflows/__test-action-setup-python.yml @@ -11,7 +11,7 @@ jobs: contents: read steps: - name: Arrange - Check out the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Assert - Action contract tests pass diff --git a/.github/workflows/__test-action-test.yml b/.github/workflows/__test-action-test.yml index 4eb0b69..7172632 100644 --- a/.github/workflows/__test-action-test.yml +++ b/.github/workflows/__test-action-test.yml @@ -12,7 +12,7 @@ jobs: outputs: artifact-id: ${{ steps.failed-test.outputs.report-artifact-id }} steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false name: Arrange - Check out the repository @@ -43,7 +43,7 @@ jobs: coverage: "" name: Act - Run a failing test command - name: Assert failures and reports - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 env: SUCCESS_ARTIFACT: ${{ steps.test.outputs.report-artifact-id }} FAILURE_ARTIFACT: ${{ steps.failed-test.outputs.report-artifact-id }} @@ -62,7 +62,7 @@ jobs: permissions: contents: read steps: - - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 + - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: artifact-ids: ${{ needs.test.outputs.artifact-id }} path: ${{ runner.temp }}/failed-reports diff --git a/.github/workflows/__test-workflow-continuous-integration.yml b/.github/workflows/__test-workflow-continuous-integration.yml index 6d7b8d4..ae8c490 100644 --- a/.github/workflows/__test-workflow-continuous-integration.yml +++ b/.github/workflows/__test-workflow-continuous-integration.yml @@ -9,7 +9,7 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Assert - Workflow configuration tests pass diff --git a/.github/workflows/continuous-integration.md b/.github/workflows/continuous-integration.md index 06a754f..e8c90b3 100644 --- a/.github/workflows/continuous-integration.md +++ b/.github/workflows/continuous-integration.md @@ -149,7 +149,7 @@ on: permissions: {} jobs: continuous-integration: - uses: hoverkraft-tech/ci-github-python/.github/workflows/continuous-integration.yml@b54ee767d7525a8132452198bdba98ed05108331 # main + uses: hoverkraft-tech/ci-github-python/.github/workflows/continuous-integration.yml@5f7a722eca203764bf066c1272fc85bc4700d35c # dependabot/github_actions/github-actions-dependencies-0daf74fb81 permissions: contents: read id-token: write diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 2b485f0..871cc78 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -155,7 +155,7 @@ jobs: package-tests: ${{ steps.config.outputs.package-tests }} steps: - id: config - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 env: VERSIONS: ${{ inputs.python-versions }} LINT: ${{ inputs.lint }} @@ -209,10 +209,10 @@ jobs: contents: read steps: - &checkout - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - uses: actions/dependency-review-action@bbc44d14a204704ccc493733616cd1e93a0321ec + - uses: actions/dependency-review-action@bbc44d14a204704ccc493733616cd1e93a0321ec # v5.0.1 lint: if: inputs.checks && needs.configuration.outputs.lint != 'null' needs: configuration diff --git a/actions/audit/README.md b/actions/audit/README.md index fd93f79..f5c7957 100644 --- a/actions/audit/README.md +++ b/actions/audit/README.md @@ -57,7 +57,7 @@ See the [continuous integration workflow](../../.github/workflows/continuous-int ## Usage ```yaml -- uses: hoverkraft-tech/ci-github-python/actions/audit@b54ee767d7525a8132452198bdba98ed05108331 # main +- uses: hoverkraft-tech/ci-github-python/actions/audit@5f7a722eca203764bf066c1272fc85bc4700d35c # dependabot/github_actions/github-actions-dependencies-0daf74fb81 with: # uv project directory. # Default: `.` diff --git a/actions/audit/action.yml b/actions/audit/action.yml index b3737fb..e02abf9 100644 --- a/actions/audit/action.yml +++ b/actions/audit/action.yml @@ -30,7 +30,7 @@ runs: using: composite steps: - id: directory - uses: hoverkraft-tech/ci-github-common/actions/working-directory@66882b24f9f13e45a6541896a5a7c638cb91c94c + uses: hoverkraft-tech/ci-github-common/actions/working-directory@d606f77fad305ef07dfde3db5270f5e324019c97 # 4.2.4 with: working-directory: ${{ inputs.working-directory }} - id: audit diff --git a/actions/lint/README.md b/actions/lint/README.md index dae2c5e..b44dab9 100644 --- a/actions/lint/README.md +++ b/actions/lint/README.md @@ -56,7 +56,7 @@ See the [continuous integration workflow](../../.github/workflows/continuous-int ## Usage ```yaml -- uses: hoverkraft-tech/ci-github-python/actions/lint@b54ee767d7525a8132452198bdba98ed05108331 # main +- uses: hoverkraft-tech/ci-github-python/actions/lint@5f7a722eca203764bf066c1272fc85bc4700d35c # dependabot/github_actions/github-actions-dependencies-0daf74fb81 with: # uv project directory. # Default: `.` diff --git a/actions/lint/action.yml b/actions/lint/action.yml index 7efc4f4..f50ce72 100644 --- a/actions/lint/action.yml +++ b/actions/lint/action.yml @@ -39,7 +39,7 @@ runs: using: composite steps: - id: directory - uses: hoverkraft-tech/ci-github-common/actions/working-directory@66882b24f9f13e45a6541896a5a7c638cb91c94c + uses: hoverkraft-tech/ci-github-common/actions/working-directory@d606f77fad305ef07dfde3db5270f5e324019c97 # 4.2.4 with: working-directory: ${{ inputs.working-directory }} - id: run diff --git a/actions/package/test/README.md b/actions/package/test/README.md index 03d2594..c38bc58 100644 --- a/actions/package/test/README.md +++ b/actions/package/test/README.md @@ -63,7 +63,7 @@ See the [continuous integration workflow](../../../.github/workflows/continuous- ## Usage ```yaml -- uses: hoverkraft-tech/ci-github-python/actions/package/test@b54ee767d7525a8132452198bdba98ed05108331 # main +- uses: hoverkraft-tech/ci-github-python/actions/package/test@5f7a722eca203764bf066c1272fc85bc4700d35c # dependabot/github_actions/github-actions-dependencies-0daf74fb81 with: # uv package directory with a build-system. # Default: `.` diff --git a/actions/package/test/action.yml b/actions/package/test/action.yml index ead4f39..244e06c 100644 --- a/actions/package/test/action.yml +++ b/actions/package/test/action.yml @@ -39,7 +39,7 @@ runs: using: composite steps: - id: directory - uses: hoverkraft-tech/ci-github-common/actions/working-directory@66882b24f9f13e45a6541896a5a7c638cb91c94c + uses: hoverkraft-tech/ci-github-common/actions/working-directory@66882b24f9f13e45a6541896a5a7c638cb91c94c # 4.0.0 with: working-directory: ${{ inputs.working-directory }} - id: package diff --git a/actions/setup-python/README.md b/actions/setup-python/README.md index ca9fd6b..f1ac174 100644 --- a/actions/setup-python/README.md +++ b/actions/setup-python/README.md @@ -55,7 +55,7 @@ Later lint, test and audit actions reuse this environment. ```yaml steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - uses: hoverkraft-tech/ci-github-python/actions/setup-python@main @@ -80,7 +80,7 @@ See the [continuous integration workflow](../../.github/workflows/continuous-int ## Usage ```yaml -- uses: hoverkraft-tech/ci-github-python/actions/setup-python@b54ee767d7525a8132452198bdba98ed05108331 # main +- uses: hoverkraft-tech/ci-github-python/actions/setup-python@5f7a722eca203764bf066c1272fc85bc4700d35c # dependabot/github_actions/github-actions-dependencies-0daf74fb81 with: # uv project directory inside the checkout. # Default: `.` diff --git a/actions/setup-python/action.yml b/actions/setup-python/action.yml index ba426cc..fff5561 100644 --- a/actions/setup-python/action.yml +++ b/actions/setup-python/action.yml @@ -27,7 +27,7 @@ description: | ```yaml steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - uses: hoverkraft-tech/ci-github-python/actions/setup-python@main @@ -66,7 +66,7 @@ runs: using: composite steps: - id: directory - uses: hoverkraft-tech/ci-github-common/actions/working-directory@66882b24f9f13e45a6541896a5a7c638cb91c94c + uses: hoverkraft-tech/ci-github-common/actions/working-directory@d606f77fad305ef07dfde3db5270f5e324019c97 # 4.2.4 with: working-directory: ${{ inputs.working-directory }} - id: validate @@ -81,7 +81,7 @@ runs: test -f uv.lock || { echo 'Commit uv.lock before running CI.' >&2; exit 1; } fi - id: uv - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d + uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0 with: version: ${{ inputs.uv-version }} python-version: ${{ inputs.python-version }} diff --git a/actions/test/README.md b/actions/test/README.md index 8e0d56d..1732d3a 100644 --- a/actions/test/README.md +++ b/actions/test/README.md @@ -66,7 +66,7 @@ See the [continuous integration workflow](../../.github/workflows/continuous-int ## Usage ```yaml -- uses: hoverkraft-tech/ci-github-python/actions/test@b54ee767d7525a8132452198bdba98ed05108331 # main +- uses: hoverkraft-tech/ci-github-python/actions/test@5f7a722eca203764bf066c1272fc85bc4700d35c # dependabot/github_actions/github-actions-dependencies-0daf74fb81 with: # uv project directory. # Default: `.` diff --git a/actions/test/action.yml b/actions/test/action.yml index 0143251..b785b57 100644 --- a/actions/test/action.yml +++ b/actions/test/action.yml @@ -52,7 +52,7 @@ runs: using: composite steps: - id: directory - uses: hoverkraft-tech/ci-github-common/actions/working-directory@66882b24f9f13e45a6541896a5a7c638cb91c94c + uses: hoverkraft-tech/ci-github-common/actions/working-directory@d606f77fad305ef07dfde3db5270f5e324019c97 # 4.2.4 with: working-directory: ${{ inputs.working-directory }} - id: validate @@ -85,7 +85,7 @@ runs: group: ${{ inputs.report-group || github.job }} - name: Upload coverage to Codecov if: ${{ !cancelled() && steps.run.outcome != 'skipped' && inputs.coverage == 'codecov' }} - uses: hoverkraft-tech/ci-github-common/actions/quality/codecov@66882b24f9f13e45a6541896a5a7c638cb91c94c + uses: hoverkraft-tech/ci-github-common/actions/quality/codecov@d606f77fad305ef07dfde3db5270f5e324019c97 # 4.2.4 with: working-directory: ${{ steps.directory.outputs.absolute-path }} files: cobertura.xml diff --git a/docs/development/README.md b/docs/development/README.md index 46fdd6f..2a9dd43 100644 --- a/docs/development/README.md +++ b/docs/development/README.md @@ -77,7 +77,9 @@ Set `GITHUB_TOKEN` when authentication is required or anonymous API limits are r ## Maintenance and releases -External actions are pinned to immutable commits. Dependabot updates actions, +External actions and reusable workflows are pinned to full commit SHAs with +the exact matching release tag in an inline comment. Verify each tag resolves +to its pinned commit before changing either value. Dependabot updates actions, Docker, npm validation dependencies and the language fixture. Renovate updates embedded tool versions and the Node version file. Release changes use Conventional Commits and the shared `ci-github-publish` preparation, planning, creation and