Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

ci: pin the third-party actions, branch-scope the image caches and drop the checkout token where nothing pushes (#7072)

Thibaud-Vdb93d50b269e57
diff --git a/.github/actions/prebuilt-debian/action.yaml b/.github/actions/prebuilt-debian/action.yaml
index 4860fa4b7..cadcff382 100644
--- a/.github/actions/prebuilt-debian/action.yaml
+++ b/.github/actions/prebuilt-debian/action.yaml
@@ -12,11 +12,11 @@ runs:
using: "composite"
steps:
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v4
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Build docker image for ${{ inputs.architecture }}
id: build
- uses: docker/build-push-action@v7
+ uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
push: false
load: true
diff --git a/.github/workflows/bot-auto-merge-reconcile.yml b/.github/workflows/bot-auto-merge-reconcile.yml
index 28e50c8a2..c7bbbabf1 100644
--- a/.github/workflows/bot-auto-merge-reconcile.yml
+++ b/.github/workflows/bot-auto-merge-reconcile.yml
@@ -14,6 +14,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v7
+ with:
+ persist-credentials: false
- name: Obtain token
id: obtainToken
diff --git a/.github/workflows/bot-pr-automerge.yml b/.github/workflows/bot-pr-automerge.yml
index 31200706e..39940f2e4 100644
--- a/.github/workflows/bot-pr-automerge.yml
+++ b/.github/workflows/bot-pr-automerge.yml
@@ -22,6 +22,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v7
+ with:
+ persist-credentials: false
- name: Obtain token
id: obtainToken
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 334cc79f9..6caa49546 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -251,11 +251,11 @@ jobs:
- name: Set up Docker Buildx
if: needs.preview-amd64.outputs.digest == '' && !env.ACT
- uses: docker/setup-buildx-action@v4
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Build container once
if: needs.preview-amd64.outputs.digest == '' && !env.ACT
- uses: docker/build-push-action@v7
+ uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
network: host
@@ -269,8 +269,11 @@ jobs:
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.ref.name=pr-${{ github.event.pull_request.number || inputs.pr_number || 'none' }}
- cache-from: type=gha,scope=homarr-e2e
- cache-to: type=gha,scope=homarr-e2e,mode=max
+ # Scoped to the ref actually checked out (the dispatch input when
+ # set), so a cache written for one ref never seeds the image built
+ # for another.
+ cache-from: type=gha,scope=homarr-e2e-${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref_name }}
+ cache-to: type=gha,scope=homarr-e2e-${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref_name }},mode=max
secrets: |
TURBO_API=${{ secrets.TURBO_API }}
TURBO_TEAM=${{ secrets.TURBO_TEAM }}
@@ -294,7 +297,9 @@ jobs:
uses: actions/cache@v6
with:
path: ~/.cache/ms-playwright
- key: playwright-${{ runner.os }}-${{ hashFiles('bun.lock') }}
+ # Ref-scoped for the same reason as the build cache above, this
+ # job can push a preview image after the browsers run.
+ key: playwright-${{ runner.os }}-${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref_name }}-${{ hashFiles('bun.lock') }}
- name: Install Playwright Chromium
if: steps.playwright-cache.outputs.cache-hit != 'true' || env.ACT
@@ -346,7 +351,7 @@ jobs:
- name: Log in to GHCR
if: "!env.ACT"
- uses: docker/login-action@v4
+ uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
@@ -354,19 +359,19 @@ jobs:
- name: Set up Docker Buildx
if: "!env.ACT"
- uses: docker/setup-buildx-action@v4
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Build and push amd64 preview image by digest
id: preview-build
if: "!env.ACT"
- uses: docker/build-push-action@v7
+ uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
network: host
platforms: linux/amd64
outputs: type=image,"name=${{ env.PREVIEW_IMAGE }}",push-by-digest=true,name-canonical=true,push=true
- cache-from: type=gha,scope=homarr-linux-amd64
- cache-to: type=gha,scope=homarr-linux-amd64,mode=max
+ cache-from: type=gha,scope=homarr-linux-amd64-${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref_name }}
+ cache-to: type=gha,scope=homarr-linux-amd64-${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref_name }},mode=max
secrets: |
TURBO_API=${{ secrets.TURBO_API }}
TURBO_TEAM=${{ secrets.TURBO_TEAM }}
@@ -398,7 +403,7 @@ jobs:
- name: Log in to GHCR
if: "!env.ACT"
- uses: docker/login-action@v4
+ uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
@@ -406,19 +411,19 @@ jobs:
- name: Set up Docker Buildx
if: "!env.ACT"
- uses: docker/setup-buildx-action@v4
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Build and push arm64 preview image by digest
id: preview-build
if: "!env.ACT"
- uses: docker/build-push-action@v7
+ uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
network: host
platforms: linux/arm64
outputs: type=image,"name=${{ env.PREVIEW_IMAGE }}",push-by-digest=true,name-canonical=true,push=true
- cache-from: type=gha,scope=homarr-linux-arm64
- cache-to: type=gha,scope=homarr-linux-arm64,mode=max
+ cache-from: type=gha,scope=homarr-linux-arm64-${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref_name }}
+ cache-to: type=gha,scope=homarr-linux-arm64-${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref_name }},mode=max
secrets: |
TURBO_API=${{ secrets.TURBO_API }}
TURBO_TEAM=${{ secrets.TURBO_TEAM }}
@@ -449,7 +454,7 @@ jobs:
steps:
- name: Log in to GHCR
if: "!env.ACT"
- uses: docker/login-action@v4
+ uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
@@ -457,7 +462,7 @@ jobs:
- name: Set up Docker Buildx
if: "!env.ACT"
- uses: docker/setup-buildx-action@v4
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Verify PR head before publication
if: github.event_name == 'pull_request'
diff --git a/.github/workflows/conventions-semantic-pull-requests.yml b/.github/workflows/conventions-semantic-pull-requests.yml
index 89aa7d9b2..1e2e4ae30 100644
--- a/.github/workflows/conventions-semantic-pull-requests.yml
+++ b/.github/workflows/conventions-semantic-pull-requests.yml
@@ -15,6 +15,6 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- - uses: amannn/action-semantic-pull-request@v6
+ - uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/crowdin-schedule-download.yml b/.github/workflows/crowdin-schedule-download.yml
index 92b66aad1..b2cd72dc4 100644
--- a/.github/workflows/crowdin-schedule-download.yml
+++ b/.github/workflows/crowdin-schedule-download.yml
@@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v7
+ with:
+ persist-credentials: false
- name: Obtain token
id: obtainToken
@@ -28,7 +30,7 @@ jobs:
- name: Download Crowdin translations
id: crowdin-download
- uses: crowdin/github-action@v2
+ uses: crowdin/github-action@8f01d54f70f1713ee3f09d82c2bbb2daeac28689 # v2.17.1
with:
upload_sources: false
upload_translations: false
diff --git a/.github/workflows/crowdin-upload.yml b/.github/workflows/crowdin-upload.yml
index 25e9b44c3..dd248d4df 100644
--- a/.github/workflows/crowdin-upload.yml
+++ b/.github/workflows/crowdin-upload.yml
@@ -19,9 +19,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v7
+ with:
+ persist-credentials: false
- name: Upload Crowdin translations
- uses: crowdin/github-action@v2
+ uses: crowdin/github-action@8f01d54f70f1713ee3f09d82c2bbb2daeac28689 # v2.17.1
with:
upload_sources: true
upload_translations: true
diff --git a/.github/workflows/deployment-beta-release.yml b/.github/workflows/deployment-beta-release.yml
index e150d8501..78b8f455c 100644
--- a/.github/workflows/deployment-beta-release.yml
+++ b/.github/workflows/deployment-beta-release.yml
@@ -22,16 +22,17 @@ jobs:
if: ${{ inputs.send-notifications }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
- uses: Ilshidur/[email protected]
+ uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: "Beta release has been triggered: [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
- name: Checkout repository
uses: actions/checkout@v7
with:
+ persist-credentials: false
fetch-depth: 0
- name: Get Next Version
id: semver
- uses: ietf-tools/semver-action@v1
+ uses: ietf-tools/semver-action@c90370b2958652d71c06a3484129a4d423a6d8a8 # v1.11.0
with:
token: ${{ github.token }}
branch: next
@@ -55,7 +56,7 @@ jobs:
if: ${{ inputs.send-notifications }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
- uses: Ilshidur/[email protected]
+ uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: "Created a release PR ${{ steps.create-pull-request.outputs.url }} for version ${{ steps.semver.outputs.next }}-beta (new behaviour: ${{ steps.semver.outputs.bump }})"
- name: Obtain token
@@ -81,7 +82,7 @@ jobs:
- id: automerge
if: ${{ steps.semver.outputs.bump != 'major' }}
name: automerge
- uses: "pascalgn/[email protected]"
+ uses: "pascalgn/automerge-action@7961b8b5eec56cc088c140b56d864285eabd3f67" # v0.16.4
env:
GITHUB_TOKEN: ${{ steps.obtainMergeToken.outputs.token }}
MERGE_METHOD: merge # we prefer merge commits for merging to beta
@@ -96,20 +97,20 @@ jobs:
if: ${{ steps.automerge.outputs.mergeResult == 'merged' && inputs.send-notifications }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
- uses: Ilshidur/[email protected]
+ uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: "Merged PR ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}-beta"
- name: Major Bump Discord notification
if: ${{ steps.semver.outputs.bump == 'major' && inputs.send-notifications }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
- uses: Ilshidur/[email protected]
+ uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: "The release PR must be manually merged because the next version is a major version: ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}-beta"
- name: Discord Fail Notification
if: ${{ failure() && inputs.send-notifications }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
- uses: Ilshidur/[email protected]
+ uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: "The beta release workflow [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) has failed"
diff --git a/.github/workflows/deployment-docker-image.yml b/.github/workflows/deployment-docker-image.yml
index e7fb6dcd8..a69022f70 100644
--- a/.github/workflows/deployment-docker-image.yml
+++ b/.github/workflows/deployment-docker-image.yml
@@ -63,7 +63,7 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- - uses: oven-sh/setup-bun@v2
+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
if: env.SKIP_RELEASE == 'false'
with:
bun-version: 1.4.2
@@ -143,27 +143,28 @@ jobs:
steps:
- uses: actions/checkout@v7
with:
+ persist-credentials: false
ref: ${{ needs.release.outputs.git_ref }}
- name: Docker meta
id: meta
- uses: docker/metadata-action@v6
+ uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: "${{ env.GHCR_REPO }}"
- name: Log in to the Container registry
- uses: docker/login-action@v4
+ uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v4
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Build and push by digest
id: build
- uses: docker/build-push-action@v7
+ uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
network: host
@@ -187,27 +188,28 @@ jobs:
steps:
- uses: actions/checkout@v7
with:
+ persist-credentials: false
ref: ${{ needs.release.outputs.git_ref }}
- name: Docker meta
id: meta
- uses: docker/metadata-action@v6
+ uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: "${{ env.GHCR_REPO }}"
- name: Log in to the Container registry
- uses: docker/login-action@v4
+ uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v4
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Build and push by digest
id: build
- uses: docker/build-push-action@v7
+ uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
network: host
@@ -282,7 +284,7 @@ jobs:
permission-contents: write # required to publish the release
- name: Log in to the Container registry
- uses: docker/login-action@v4
+ uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
@@ -325,7 +327,7 @@ jobs:
if: github.event_name != 'workflow_dispatch' || inputs['send-notifications']
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
- uses: Ilshidur/[email protected]
+ uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: "Successfully deployed images for branch **${{ github.ref_name }}**. Tagged as **${{env.NEXT_VERSION}}**."
@@ -339,6 +341,6 @@ jobs:
- name: Discord failure notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
- uses: Ilshidur/[email protected]
+ uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: "The deployment for branch **${{ github.ref_name }}** failed or was cancelled: [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
diff --git a/.github/workflows/deployment-docs.yml b/.github/workflows/deployment-docs.yml
index af9e09db0..d503110c7 100644
--- a/.github/workflows/deployment-docs.yml
+++ b/.github/workflows/deployment-docs.yml
@@ -37,6 +37,8 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
+ with:
+ persist-credentials: false
- name: Setup
uses: ./tooling/github/setup
with:
diff --git a/.github/workflows/deployment-weekly-release.yml b/.github/workflows/deployment-weekly-release.yml
index 1d340fa3e..9acfe15f1 100644
--- a/.github/workflows/deployment-weekly-release.yml
+++ b/.github/workflows/deployment-weekly-release.yml
@@ -25,16 +25,17 @@ jobs:
if: ${{ github.event_name == 'schedule' || inputs.send-notifications }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
- uses: Ilshidur/[email protected]
+ uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: "Automatic release has been triggered: [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
- name: Checkout repository
uses: actions/checkout@v7
with:
+ persist-credentials: false
fetch-depth: 0
- name: Get Next Version
id: semver
- uses: ietf-tools/semver-action@v1
+ uses: ietf-tools/semver-action@c90370b2958652d71c06a3484129a4d423a6d8a8 # v1.11.0
with:
token: ${{ github.token }}
branch: dev
@@ -90,7 +91,7 @@ jobs:
if: ${{ steps.create-pull-request.outcome == 'success' && (github.event_name == 'schedule' || inputs.send-notifications) }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
- uses: Ilshidur/[email protected]
+ uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: "Created a release PR ${{ steps.create-pull-request.outputs.url }} for version ${{ steps.semver.outputs.next }} (new behaviour: ${{ steps.semver.outputs.bump }})"
- name: Obtain token
@@ -119,7 +120,7 @@ jobs:
- id: automerge
if: ${{ steps.create-pull-request.outcome == 'success' && steps.semver.outputs.bump != 'major' }}
name: automerge
- uses: "pascalgn/[email protected]"
+ uses: "pascalgn/automerge-action@7961b8b5eec56cc088c140b56d864285eabd3f67" # v0.16.4
env:
GITHUB_TOKEN: ${{ steps.obtainMergeToken.outputs.token }}
MERGE_METHOD: merge # we prefer merge commits for merging to main
@@ -134,20 +135,20 @@ jobs:
if: ${{ steps.automerge.outputs.mergeResult == 'merged' && (github.event_name == 'schedule' || inputs.send-notifications) }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
- uses: Ilshidur/[email protected]
+ uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: "Merged PR ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}"
- name: Major Bump Discord notification
if: ${{ steps.semver.outputs.bump == 'major' && (github.event_name == 'schedule' || inputs.send-notifications) }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
- uses: Ilshidur/[email protected]
+ uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: "The release PR must be manually merged because the next version is a major version: ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}"
- name: Discord Fail Notification
if: ${{ failure() && (github.event_name == 'schedule' || inputs.send-notifications) }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
- uses: Ilshidur/[email protected]
+ uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: "The automatic release workflow [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) has failed"
diff --git a/.github/workflows/docs-update-contributors.yml b/.github/workflows/docs-update-contributors.yml
index 72a669a9e..58c7fc564 100644
--- a/.github/workflows/docs-update-contributors.yml
+++ b/.github/workflows/docs-update-contributors.yml
@@ -31,7 +31,7 @@ jobs:
run: bun run api-dump-contributors
- name: Commit updated contributors
- uses: EndBug/add-and-commit@v10
+ uses: EndBug/add-and-commit@290ea2c423ad77ca9c62ae0f5b224379612c0321 # v10.0.0
with:
add: "apps/docs/public"
default_author: github_actor
diff --git a/.github/workflows/docs-update-openapi.yml b/.github/workflows/docs-update-openapi.yml
index 27b0e1119..ac7ece9a3 100644
--- a/.github/workflows/docs-update-openapi.yml
+++ b/.github/workflows/docs-update-openapi.yml
@@ -30,7 +30,7 @@ jobs:
run: bun run scripts:update-openapi
- name: Commit updated spec
- uses: EndBug/add-and-commit@v10
+ uses: EndBug/add-and-commit@290ea2c423ad77ca9c62ae0f5b224379612c0321 # v10.0.0
with:
add: "apps/docs/public/api/"
default_author: github_actor
diff --git a/.github/workflows/on-pr-prebuilt-debian-validate.yml b/.github/workflows/on-pr-prebuilt-debian-validate.yml
index 9300e152b..59ed278bb 100644
--- a/.github/workflows/on-pr-prebuilt-debian-validate.yml
+++ b/.github/workflows/on-pr-prebuilt-debian-validate.yml
@@ -26,6 +26,8 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
+ with:
+ persist-credentials: false
- name: Validate Debian archive for ${{ matrix.architecture }}
uses: ./.github/actions/extract-build-artifact
with:
diff --git a/.github/workflows/on-pr-renovate-validate.yml b/.github/workflows/on-pr-renovate-validate.yml
index fa85f46d3..5e92c103e 100644
--- a/.github/workflows/on-pr-renovate-validate.yml
+++ b/.github/workflows/on-pr-renovate-validate.yml
@@ -17,8 +17,10 @@ jobs:
RENOVATE_X_IGNORE_RE2: "true"
steps:
- uses: actions/checkout@v7
+ with:
+ persist-credentials: false
if: "!env.ACT"
- - uses: oven-sh/setup-bun@v2
+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.4.2
- run: |
diff --git a/.github/workflows/on-release.yml b/.github/workflows/on-release.yml
index 08af41f7e..b0216ee40 100644
--- a/.github/workflows/on-release.yml
+++ b/.github/workflows/on-release.yml
@@ -21,6 +21,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v7
with:
+ persist-credentials: false
token: ${{ steps.obtainToken.outputs.token }}
ref: dev
- name: Setup
@@ -31,7 +32,7 @@ jobs:
- name: Create Pull Request
id: create-pull-request
- uses: peter-evans/create-pull-request@v8
+ uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
add-paths: .github/ISSUE_TEMPLATE/bug_report.yml
commit-message: "chore: update bug report template"
diff --git a/.github/workflows/update-contributors.yml b/.github/workflows/update-contributors.yml
index a041a691d..d3852d4fd 100644
--- a/.github/workflows/update-contributors.yml
+++ b/.github/workflows/update-contributors.yml
@@ -27,9 +27,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v7
+ with:
+ persist-credentials: false
env:
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
- - uses: oven-sh/setup-bun@v2
+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.4.2
@@ -47,7 +49,7 @@ jobs:
- name: Create Pull Request
id: create-pull-request
- uses: peter-evans/create-pull-request@v8
+ uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ steps.obtainToken.outputs.token }}
branch: update-contributors
diff --git a/.github/workflows/update-integration-list.yml b/.github/workflows/update-integration-list.yml
index c06358ad8..4c23eb455 100644
--- a/.github/workflows/update-integration-list.yml
+++ b/.github/workflows/update-integration-list.yml
@@ -29,6 +29,8 @@ jobs:
permission-pull-requests: write # required to create pr & enable automerge
- name: Checkout code
uses: actions/checkout@v7
+ with:
+ persist-credentials: false
env:
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
- name: Setup
@@ -36,7 +38,7 @@ jobs:
- run: bun run scripts:update-readme-integrations
- name: Create Pull Request
id: create-pull-request
- uses: peter-evans/create-pull-request@v8
+ uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ steps.obtainToken.outputs.token }}
branch: update-integrations-readme
diff --git a/.github/workflows/workshop.yml b/.github/workflows/workshop.yml
index a12066be3..cbaa67408 100644
--- a/.github/workflows/workshop.yml
+++ b/.github/workflows/workshop.yml
@@ -154,10 +154,10 @@ jobs:
node-version: 24.18.0
- name: Set up Docker Buildx
if: "!env.ACT"
- uses: docker/setup-buildx-action@v4
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Build the production image
if: "!env.ACT"
- uses: docker/build-push-action@v7
+ uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
file: apps/workshop/Dockerfile
@@ -205,13 +205,13 @@ jobs:
- uses: actions/setup-node@v6
with:
node-version: 24.18.0
- - uses: docker/setup-buildx-action@v4
- - uses: docker/login-action@v4
+ - uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
+ - uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- - uses: docker/build-push-action@v7
+ - uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
id: build
with:
context: .
@@ -251,13 +251,13 @@ jobs:
- uses: actions/setup-node@v6
with:
node-version: 24.18.0
- - uses: docker/setup-buildx-action@v4
- - uses: docker/login-action@v4
+ - uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
+ - uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- - uses: docker/build-push-action@v7
+ - uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
id: build
with:
context: .
@@ -290,8 +290,8 @@ jobs:
env:
WORKSHOP_IMAGE: ghcr.io/homarr-labs/workshop
steps:
- - uses: docker/setup-buildx-action@v4
- - uses: docker/login-action@v4
+ - uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
+ - uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
diff --git a/tooling/github/setup/action.yml b/tooling/github/setup/action.yml
index 56a11c382..7f4c4f4ba 100644
--- a/tooling/github/setup/action.yml
+++ b/tooling/github/setup/action.yml
@@ -22,7 +22,7 @@ runs:
with:
node-version: 24.18.0
- - uses: oven-sh/setup-bun@v2
+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.4.2