Skip to content
Merged
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
15 changes: 13 additions & 2 deletions .github/actions/setup-bun/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
version:
description: Bun version, keep in sync with the pinned claude-code-action
default: 1.4.4
sha256:
description: Checksum of bun-linux-x64.zip for that version, from the release's SHASUMS256.txt
default: bf8ccbfb2b0b80159e0f9a6d15c55317add8077534dbc6130a3edb52fccb395c
Comment thread
naltatis marked this conversation as resolved.
Resolved

outputs:
path:
Expand All @@ -21,8 +24,8 @@ runs:
id: cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
with:
path: ${{ runner.temp }}/bun
key: ${{ runner.os }}-bun-${{ inputs.version }}
path: ${{ runner.temp }}/bun.zip
key: ${{ runner.os }}-bun-${{ inputs.version }}-${{ inputs.sha256 }}

- name: Download Bun
if: steps.cache.outputs.cache-hit != 'true'
Expand All @@ -32,5 +35,13 @@ runs:
run: |
curl -fsSL --retry 6 --retry-all-errors --retry-delay 15 -o "$RUNNER_TEMP/bun.zip" \
"https://github.com/oven-sh/bun/releases/download/bun-v$VERSION/bun-linux-x64.zip"

# the archive is cached, so a restored copy is checked as well
- name: Verify and unpack Bun
shell: bash
env:
SHA256: ${{ inputs.sha256 }}
run: |
echo "$SHA256 $RUNNER_TEMP/bun.zip" | sha256sum -c -
unzip -q -j -o "$RUNNER_TEMP/bun.zip" -d "$RUNNER_TEMP/bun"
"$RUNNER_TEMP/bun/bun" --version
10 changes: 9 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
directories:
- "/"
- "/.github/actions/*"
schedule:
interval: "monthly"
cooldown:
default-days: 7
labels:
- "infrastructure"
# init and analyze must run the same version, SHA pins make them separate dependencies
Expand All @@ -15,6 +19,8 @@ updates:
directory: "/"
schedule:
interval: "monthly"
cooldown:
default-days: 7
labels:
- "infrastructure"
- package-ecosystem: "gomod"
Expand All @@ -36,5 +42,7 @@ updates:
directory: "/.github"
schedule:
interval: "monthly"
cooldown:
default-days: 7
labels:
- "infrastructure"
3 changes: 3 additions & 0 deletions .github/workflows/claude-code-review-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
workflows: ["Claude Code Review"]
types: [completed]

permissions: {}

jobs:
gate:
# Only react to PR runs that finished successfully.
Expand Down Expand Up @@ -96,6 +98,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
persist-credentials: false

- name: Setup Bun
id: bun
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ concurrency:
group: claude-review-${{ github.event.pull_request.number }}
cancel-in-progress: true

permissions: {}

jobs:
prepare:
# Skip draft PRs
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/claude-issue-agent.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Claude Issue & PR Agent

permissions: {}

on:
issues:
# reopened: the triage agent closes incomplete reports and asks the reporter
Expand Down Expand Up @@ -154,6 +156,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0
persist-credentials: false

- name: Setup Bun
id: bun
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cli-docs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Deploy CLI docs

permissions: {}

on:
release:
types: [created]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#
name: "CodeQL"

permissions: {}

on:
push:
branches: [master]
Expand Down Expand Up @@ -62,6 +64,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/command-analyze.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Claude Analyze Command

permissions: {}

on:
issue_comment:
types: [created]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/command-backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
runs-on: depot-ubuntu-24.04-arm
permissions:
contents: write
contents: read
issues: write
pull-requests: write

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/command-fix.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Claude Fix Command

permissions: {}

on:
issue_comment:
types: [created]
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Default

permissions: {}

on:
push:
branches:
Expand Down Expand Up @@ -120,7 +122,6 @@ jobs:
name: UI
permissions:
contents: read
actions: write
runs-on: ${{ github.event.pull_request.head.repo.fork && 'ubuntu-24.04-arm' || 'depot-ubuntu-24.04-arm' }}

steps:
Expand Down Expand Up @@ -190,7 +191,6 @@ jobs:

permissions:
contents: read
actions: write

# the Playwright run is the longest step of the workflow, so it is split
strategy:
Expand Down Expand Up @@ -328,7 +328,6 @@ jobs:

permissions:
contents: read
actions: write

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/docs-issue.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Create Documentation Issue
permissions:
issues: write
contents: read
permissions: {}

on:
pull_request_target:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Deploy updated templates

permissions: {}

on:
schedule:
- cron: "0 2 * * *" # same time as nightly is triggered
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/hassio-changelog.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Hassio Addon Changelog Update (Reusable)

permissions: {}

on:
workflow_call:
inputs:
Expand Down
118 changes: 0 additions & 118 deletions .github/workflows/language-reminder.yml

This file was deleted.

6 changes: 5 additions & 1 deletion .github/workflows/nightly-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: Nightly Docker
on:
workflow_call:

permissions: {}

jobs:
docker:
name: Publish Docker :nightly
Expand Down Expand Up @@ -52,9 +54,11 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}

- name: Delete old nightly.* tags
env:
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
run: |
old_tags=$(curl -s "https://hub.docker.com/v2/repositories/evcc/evcc/tags/?page_size=100" | jq -r '.results | map(select(.name | startswith("nightly."))) | sort_by(.last_updated) | reverse | .[1:] | .[].name')
for tag in $old_tags; do
echo "Deleting tag: $tag"
curl -s -H "Authorization: Bearer ${{ secrets.DOCKER_PASS }}" -X DELETE "https://hub.docker.com/v2/repositories/evcc/evcc/tags/$tag/"
curl -s -H "Authorization: Bearer $DOCKER_PASS" -X DELETE "https://hub.docker.com/v2/repositories/evcc/evcc/tags/$tag/"
done
1 change: 0 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
uses: ./.github/workflows/default.yml
permissions:
contents: read
actions: write

docker:
needs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/openapi-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Setup Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
with:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
uses: ./.github/workflows/default.yml
permissions:
contents: read
actions: write

docker:
name: Publish Docker :release
Expand Down Expand Up @@ -174,14 +173,14 @@ jobs:
permissions:
contents: read

env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: superfly/flyctl-actions/setup-flyctl@ed8efb33836e8b2096c7fd3ba1c8afe303ebbff1 # master
- run: flyctl deploy --local-only --config packaging/fly.toml
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

hassio:
name: Hassio Addon
Expand Down
Loading
Loading