Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
0ec6eb6
ci: define LSP Cargo license policy
PHPCraftdream Oct 28, 2026
c140d97
ci: check editor npm licenses and restricted tools
PHPCraftdream Oct 28, 2026
bc0776d
test: cover editor npm license policy
PHPCraftdream Oct 28, 2026
59015bc
ci: verify VSIX dependencies and license files
PHPCraftdream Oct 28, 2026
2446629
ci: inspect IntelliJ Gradle licenses
PHPCraftdream Oct 28, 2026
77312d4
ci: define IntelliJ Gradle license policy
PHPCraftdream Oct 28, 2026
9637b1b
ci: check editor dependency licenses
PHPCraftdream Oct 28, 2026
3571dad
ci: fix editor license checks
PHPCraftdream Oct 28, 2026
d88bd2b
ci: verify editor test graphs and manifests
PHPCraftdream Oct 28, 2026
5e61981
ci: validate IntelliJ test metadata graph
PHPCraftdream Oct 28, 2026
322b00f
ci: capture IntelliJ dependency provenance
PHPCraftdream Oct 28, 2026
de012ba
ci: avoid resolving unavailable source variants
PHPCraftdream Oct 28, 2026
e6058b7
ci: retain IntelliJ artifact fingerprints
PHPCraftdream Oct 29, 2026
741c3cb
build: stop resolving disabled IntelliJ instrumentation tools
PHPCraftdream Oct 29, 2026
50a8b91
build: remove defaults for disabled instrumentation graph
PHPCraftdream Oct 29, 2026
234563c
ci: bind reviewed IntelliJ test licenses to exact artifacts
PHPCraftdream Oct 29, 2026
8215054
ci: retain SDK directory notices and marker metadata
PHPCraftdream Oct 29, 2026
265f29f
ci: verify IntelliJ distribution licensing boundaries
PHPCraftdream Oct 29, 2026
955f650
ci: bind IntelliJ tooling approvals to exact evidence
PHPCraftdream Oct 29, 2026
df78c7f
ci: inspect LSP notice resources and executable runtime inputs
PHPCraftdream Oct 29, 2026
df0e432
ci: preserve source-backed LSP license supplement
PHPCraftdream Oct 30, 2026
39526a0
ci: replace LSP fallback texts with source evidence
PHPCraftdream Oct 30, 2026
53ae215
ci: prove retained LSP startup sections
PHPCraftdream Oct 30, 2026
3dd0215
ci: prove ARM64 LSP source-based relinking
PHPCraftdream Oct 30, 2026
4333c98
ci: match the complete ARM64 startup entry label
PHPCraftdream Oct 30, 2026
9c7cfc2
ci: retain source-verified LSP startup license terms
PHPCraftdream Oct 30, 2026
24df849
ci: inventory macOS and Windows LSP runtime inputs
PHPCraftdream Oct 30, 2026
fcd28d6
ci: capture selected linker and installed SDK legal terms
PHPCraftdream Oct 30, 2026
e9a831f
ci: retain SDK document inventory before bound checks
PHPCraftdream Oct 30, 2026
44a97bb
ci: retain the complete measured SDK notice document
PHPCraftdream Oct 30, 2026
2f5aae1
ci: evaluate GNU LLVM Windows LSP compatibility
PHPCraftdream Oct 30, 2026
6c85e3f
ci: verify Windows candidate without SDK runtime DLLs
PHPCraftdream Oct 30, 2026
e7fa3ac
ci: keep release linker evidence separate from tests
PHPCraftdream Oct 30, 2026
58279f9
ci: fingerprint actual GNU LLVM linker inputs
PHPCraftdream Oct 30, 2026
8ea4bdf
ci: embed source-backed Windows LSP notices
PHPCraftdream Oct 30, 2026
dfa4c8f
ci: verify macOS LSP notice resources and imports
PHPCraftdream Oct 30, 2026
57e7e5f
fix: preserve public Darwin SDK stub names
PHPCraftdream Oct 30, 2026
0fa00f7
ci: strip unused macOS LSP dylib dependencies
PHPCraftdream Oct 30, 2026
5e1c248
ci: stage complete licensed LSP distribution payloads
PHPCraftdream Oct 30, 2026
892b963
ci: preserve licensed payloads in plugin binary trees
PHPCraftdream Oct 30, 2026
8baea22
fix: retain trusted imports in isolated organizer
PHPCraftdream Oct 30, 2026
f136659
ci: verify legal payloads in actual plugin archives
PHPCraftdream Oct 30, 2026
3a6ed21
fix: allow VS Code download handshakes to complete
PHPCraftdream Oct 30, 2026
0c2f9b8
fix: configure Gradle license tasks before selection
PHPCraftdream Oct 30, 2026
c7581fd
ci: preserve licensed payloads through release staging
PHPCraftdream Oct 30, 2026
e1e346f
docs: explain native notices and matching source delivery
PHPCraftdream Oct 30, 2026
aa8d853
fix(licenses): retain LSP compiler runtime grants
PHPCraftdream Nov 1, 2026
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
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,10 @@ jobs:
- run: ./gradlew test verifyPlugin --no-daemon
env:
KTAV_LSP_SMOKE_BINARY: ${{ github.workspace }}/lsp/target/release/ktav-lsp
- uses: actions/upload-artifact@v4
with:
name: intellij-distribution-evidence
path: |
intellij/build/distributions/*.zip
intellij/build/license-inventory/plugin-distribution.json
if-no-files-found: error
67 changes: 67 additions & 0 deletions .github/workflows/licenses.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: License checks

on:
push:
branches: [main]
pull_request:

permissions:
contents: read

jobs:
lsp-licenses:
name: LSP Cargo dependency licenses
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@b66acf5e9fe20f8aba065be86778a8a4c846f902
with:
manifest-path: ./lsp/Cargo.toml
arguments: --all-features --locked
command: check licenses

vscode-licenses:
name: VS Code and docs dependency licenses
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install without lifecycle scripts
working-directory: vscode
run: npm ci --ignore-scripts
- run: node --test tests/npm-license-policy.test.mjs
- run: node ci/check-npm-licenses.mjs
- name: Build VSIX without publishing or signing
working-directory: vscode
run: npx --no-install vsce package --out "$RUNNER_TEMP/ktav.vsix"
- name: Check VSIX dependencies and notices
run: python ci/check-vsix-licenses.py "$RUNNER_TEMP/ktav.vsix"

intellij-licenses:
name: IntelliJ Gradle dependency licenses
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- name: Check IntelliJ distribution guard regressions
run: python3 -I -m unittest discover -s ci -p test_intellij_distribution.py -v
- name: Check tooling evidence guard regressions
run: python3 -I -m unittest discover -s ci -p test_tooling_license_evidence.py -v
- name: Check SDK evidence guard regressions
run: python3 -I -m unittest discover -s ci -p test_sdk_license_evidence.py -v
- name: Check Gradle configurations and buildscript dependencies
working-directory: intellij
run: ./gradlew --no-daemon --no-parallel --no-configure-on-demand -I ../ci/license-init.gradle licenseArtifactInventory checkLicense
- uses: actions/upload-artifact@v4
if: always()
with:
name: intellij-license-report
path: |
intellij/build/reports/dependency-license
intellij/build/license-inventory
if-no-files-found: warn
96 changes: 96 additions & 0 deletions .github/workflows/lsp-distribution-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: LSP distribution contract guards

on:
pull_request:

permissions:
contents: read

jobs:
payloads:
uses: ./.github/workflows/lsp-licensed-payloads.yml
with:
source_ref: 2618bf1232f95da464a5cd407cc247ebb76acddd
vsix:
name: Verify actual VSIX legal and source delivery
needs: payloads
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false
- uses: actions/download-artifact@v4
with:
name: lsp-plugin-binaries
path: vscode/bin
- name: Restore executable modes lost by artifact transport
run: chmod +x vscode/bin/{linux-x64,linux-arm64,darwin-x64,darwin-arm64}/ktav-lsp
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
cache-dependency-path: vscode/package-lock.json
- name: Build and package actual extension without publishing
working-directory: vscode
run: |
npm ci
npm run sync-grammars
npm run test:unit
npx vsce package --out ktav-license-check.vsix
- name: Verify existing runtime guard and complete LSP payloads
run: |
python3 -I scripts/check_lsp_plugin_zip.py vscode/ktav-license-check.vsix vsix > "$RUNNER_TEMP/vsix-lsp-distribution.json"
python3 -I vscode/src/test/vsix/vsix_archive.py vscode/ktav-license-check.vsix "$(node -p "require('./vscode/package.json').version")"
- uses: actions/upload-artifact@v4
with:
name: lsp-verified-vsix
path: |
vscode/ktav-license-check.vsix
${{ runner.temp }}/vsix-lsp-distribution.json
if-no-files-found: error
intellij:
name: Verify actual IntelliJ legal and source delivery
needs: payloads
runs-on: ubuntu-latest
env:
KTAV_BUILD_STAMP: license-check
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false
- uses: actions/download-artifact@v4
with:
name: lsp-plugin-binaries
path: intellij/bin
- name: Restore executable modes lost by artifact transport
run: chmod +x intellij/bin/{linux-x64,linux-arm64,darwin-x64,darwin-arm64}/ktav-lsp
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- uses: gradle/actions/setup-gradle@v4
- name: Build and verify actual plugin without publishing
working-directory: intellij
run: ./gradlew --no-daemon --no-parallel --no-configure-on-demand -I ../ci/license-init.gradle licenseArtifactInventory checkLicense test checkIntellijDistribution
- name: Require all six complete platform payloads in actual ZIP
shell: python
run: |
import os
from pathlib import Path
import subprocess
import sys
archives = list(Path('intellij/build/distributions').glob('*.zip'))
if len(archives) != 1:
raise SystemExit('expected exactly one actual IntelliJ ZIP')
report = subprocess.check_output([sys.executable, '-I', 'scripts/check_lsp_plugin_zip.py', str(archives[0]), 'intellij'])
(Path(os.environ['RUNNER_TEMP']) / 'intellij-lsp-distribution.json').write_bytes(report)
- uses: actions/upload-artifact@v4
with:
name: lsp-verified-intellij
path: |
intellij/build/distributions/*.zip
intellij/build/license-inventory/plugin-distribution.json
${{ runner.temp }}/intellij-lsp-distribution.json
if-no-files-found: error
87 changes: 87 additions & 0 deletions .github/workflows/lsp-licensed-payloads.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Licensed LSP payloads

on:
workflow_call:
inputs:
source_ref:
description: Immutable 0.8.1 source commit to build
required: true
type: string

permissions:
contents: read

jobs:
contract:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Require immutable source selection
shell: python
env:
SOURCE_REF: ${{ inputs.source_ref }}
run: |
import os
import re
if not re.fullmatch('[0-9a-f]{40}', os.environ['SOURCE_REF']):
raise SystemExit('licensed LSP producer requires immutable source SHA')
- name: Verify required legal/source roles and plugin remapping
run: python3 -I -m unittest discover -s ci -p 'test_lsp_distribution*.py' -v
- name: Verify existing IntelliJ archive guards
run: python3 -I -m unittest discover -s ci -p test_intellij_distribution.py -v
- name: Verify idempotent notice-only source overlay
run: python3 -I -m unittest discover -s ci -p test_lsp_notice_overlay.py -v
gnu:
name: GNU notices and matching source
needs: contract
uses: ./.github/workflows/lsp-notice-check.yml
with:
source_ref: ${{ inputs.source_ref }}
windows:
name: Windows source-backed notices
needs: contract
uses: ./.github/workflows/windows-gnullvm-check.yml
with:
source_ref: ${{ inputs.source_ref }}
macos:
name: macOS resource and system-input evidence
needs: contract
uses: ./.github/workflows/macos-notice-check.yml
with:
source_ref: ${{ inputs.source_ref }}
organize:
name: Preserve complete plugin binary payloads
needs: [gnu, windows, macos]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/download-artifact@v4
with:
pattern: lsp-distribution-*
path: ${{ runner.temp }}/lsp-plugin-inputs
merge-multiple: false
- name: Organize all six platform directories with legal/source materials
shell: python
run: |
import os
from pathlib import Path
import subprocess
import sys
root = Path(os.environ['RUNNER_TEMP'])
report = subprocess.check_output([sys.executable, '-I', 'scripts/organize_lsp_distribution.py', str(root / 'lsp-plugin-inputs'), str(root / 'lsp-plugin-bin')])
(root / 'lsp-plugin-organization.json').write_bytes(report)
sys.stdout.buffer.write(report)
- uses: actions/upload-artifact@v4
with:
name: lsp-plugin-binaries
path: ${{ runner.temp }}/lsp-plugin-bin/
if-no-files-found: error
- uses: actions/upload-artifact@v4
with:
name: lsp-plugin-organization
path: ${{ runner.temp }}/lsp-plugin-organization.json
if-no-files-found: error
Loading
Loading