Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
31 changes: 31 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Renovate
on:
schedule:
- cron: '0 3 * * *'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true
Comment on lines +6 to +8

Copilot AI Feb 9, 2026

Copy link

Choose a reason for hiding this comment

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

The concurrency group includes ${{ github.sha }}, which changes on every scheduled run; this prevents cancel-in-progress: true from cancelling a previous still-running scheduled Renovate job (each run will end up in a different group). For schedule-based workflows, consider using a stable key like ${{ github.workflow }}-${{ github.event_name }} (optionally plus ${{ github.ref }}) so overlapping runs get cancelled as intended.

Copilot uses AI. Check for mistakes.
jobs:
renovate:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Renovate
uses: renovatebot/github-action@v46.0.2
with:
configurationFile: renovate.json
token: ${{ secrets.PAT_TOKEN }}
renovate-check:
if: always()
needs:
- renovate
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Alls Green
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,18 @@ neovim-dev: ## Set up local Neovim development environment.
.PHONY: neovim-upgrade
neovim-upgrade: ## Update Neovim plugins.
@echo "📦 Updating neovim plugins..."
@nvim --headless +"lua vim.pack.update()" +qa
@if [ "$$CI" = "true" ] || [ "$$IN_DOCKER" = "true" ]; then \
$(MAKE) neovim-upgrade-dev; \
else \

Copilot AI Feb 9, 2026

Copy link

Choose a reason for hiding this comment

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

This introduces infinite recursion in CI/Docker: neovim-upgrade delegates to neovim-upgrade-dev, which runs make neovim-upgrade inside nix develop; since CI is still true in that environment, it will delegate again and loop until failure. Introduce a non-recursive inner target (e.g., one that runs the nvim --headless ... command unconditionally) and have the wrapper target delegate to that, or explicitly override/unset CI/IN_DOCKER for the inner invocation.

Copilot uses AI. Check for mistakes.
nvim --headless +"lua vim.pack.update()" +qa; \
fi
@echo "✅ Neovim plugins updated"

.PHONY: neovim-upgrade-dev
neovim-upgrade-dev: ## Update Neovim plugins inside the Nix dev shell (mirrors CI).
@echo "📦 Updating neovim plugins inside the Nix dev shell..."
@DEVENV_ROOT=$(CURDIR) $(NIX_ALLOW_UNFREE) $(NIX_EXEC) develop $(NIX_FLAGS) .# --command $(MAKE) neovim-upgrade

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

security-high high

The current implementation of neovim-upgrade and neovim-upgrade-dev creates an infinite recursion loop when running in CI or Docker, leading to a Denial of Service (DoS) of the CI pipeline. This occurs because neovim-upgrade (line 584) calls neovim-upgrade-dev if CI or IN_DOCKER is true. neovim-upgrade-dev (line 594) then executes make neovim-upgrade inside a nix develop shell. Since environment variables like CI are typically preserved, the recursive call to make neovim-upgrade will again see CI=true and call neovim-upgrade-dev again, causing an infinite loop. To resolve this, the nvim command should be executed directly from within the nix develop command, instead of re-invoking make neovim-upgrade.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

security-medium medium

The variable $(CURDIR) is used without quotes when setting the DEVENV_ROOT environment variable. If the repository is cloned into a directory path containing spaces or shell metacharacters (e.g., ;, &, |), this can lead to command injection or unexpected behavior as the shell interprets the unquoted path.

Additionally, the environment variables CI and IN_DOCKER are used in a shell if condition. While they are wrapped in double quotes, a value containing a double quote could potentially break out of the condition and execute arbitrary commands.

	@DEVENV_ROOT="$(CURDIR)" $(NIX_ALLOW_UNFREE) $(NIX_EXEC) develop $(NIX_FLAGS) .# --command nvim --headless +"lua vim.pack.update()" +qa

Copilot AI Feb 9, 2026

Copy link

Choose a reason for hiding this comment

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

neovim-upgrade-dev runs nix develop ... --command $(MAKE) neovim-upgrade, but neovim-upgrade is a wrapper that conditionally delegates back to neovim-upgrade-dev when CI/IN_DOCKER is set, creating a recursion loop. Consider running nvim --headless ... directly as the --command, or call a dedicated non-wrapper target (e.g., neovim-upgrade-inner) from both places.

Copilot uses AI. Check for mistakes.

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
.PHONY: neovim-sync
neovim-sync: neovim-upgrade ## Sync Neovim plugins.
@echo "🔄 Syncing neovim plugins..."
Expand Down
Loading