Benign lua Download

copilot.lua 3.1.9-1

“Fully featured & enhanced replacement for copilot.vim complete with API for interacting with Github Copilot”

Node calls imported writeFileSyncNode launch copies process environment

Evidence

Shell changes working directory lines 6–22
6:19… failed at line %s (exit %s)\n" "$LINENO" "$?" >&2' ERR
7
8root=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../.." && pwd)
9script="$root/.github/scripts/lsp-release.sh"
10tmp=$(mktemp -d)
11trap 'rm -rf "$tmp"' EXIT
12
⋯10 lines
Shell invokes mkdir command lines 50–63
50:40… example.com
51 git -C "$dir" remote add origin "$dir-origin.git"
52 mkdir -p "$dir/lua/copilot"
53 mkdir -p "$dir/lua/copilot/lsp"
54 printf 'return {\n version = "1.527.1",\n assets = {},\n}\n' >"$dir/lua/copilot/lsp/release.lua"
55 printf '{\n ".": "3.0.3"\n}\n' >"$dir/.release-please-manifest.json"
56 git -C "$dir" add .
57 git -C "$dir" commit -m initial >/dev/null
58 printf '%s\n' "$dir"
59}
⋯4 lines
Auth-like constant assignment lines 77–115
77:104… $script"
78
79# Only gh is mocked: Git refs, pushes and rejected pushes use real repositories.
80mkdir "$tmp/bin"
81cat >"$tmp/bin/gh" <<'STUB'
82#!/usr/bin/env bash
⋯16 lines
99esac
100STUB
101chmod +x "$tmp/bin/gh"
102export PATH="$tmp/bin:$PATH" GH_TOKEN=test GITHUB_REPOSITORY=test/project
103
104run_helper() { (cd "$repo" && bash "$script" "$@"); }
105repo=$(new_fixture ordered)
106git -C "$repo" tag v3.0.3
107git -C "$repo" push origin HEAD:master --tags >/dev/null
108base=$(git -C "$repo" rev-parse HEAD)
109printf '{".":"3.0.4"}\n' >"$repo/.release-please-manifest.json"
110printf 'return { version = "1.528.0" }\n' >"$repo/lua/copilot/lsp/release.lua"
111git -C "$repo" add .
112git -C "$repo" commit -m 'update metadata' >/dev/null
113merge_sha=$(git -C "$repo" rev-parse HEAD)
114export PR_JSON
115PR_JSON=$(jq -n --arg sha "$merge_sha" '[{merged_at:"2026-09-07T00:00:00Z", merge_commit_sha:$sha, base:{ref …
Shell printf redirects output to a file lines 115–121
115:235… }}]')
116good_pr=$PR_JSON
117run_helper check-pr "$base" "$merge_sha"
118printf 'not JSON\n' >"$repo/.release-please-manifest.json"
119run_helper check-pr "$base" "$merge_sha" # Must read refs, not worktree.
120git -C "$repo" restore .release-please-manifest.json
121assert_fails 'bas …
chmod marks a variable path executable lines 140–151
140:60… le
141
142# A rejected push leaves a local tag; retry must also work without that local state.
143printf '#!/bin/sh\nexit 1\n' >"$repo-origin.git/hooks/pre-receive"
144chmod +x "$repo-origin.git/hooks/pre-receive"
145assert_fails 'rejected push' run_helper reconcile
146assert_fails 'remote remains untagged' git --git-dir="$repo-origin.git" show-ref --verify refs/tags/v3.0.4
147rm "$repo-origin.git/hooks/pre-receive"
148git clone "$repo-origin.git" "$tmp/retry" >/dev/null
149repo="$tmp/retry"
150HIDE_TAG=v3.0.4 assert_fails 'publication not visible' run_helper reconcile
151assert_eq …

Showing the top 5 files — 5 more files (42 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.