-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetenv.example.ps1
More file actions
33 lines (27 loc) · 1.1 KB
/
Copy pathsetenv.example.ps1
File metadata and controls
33 lines (27 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Guard: must be dot-sourced, not executed directly
if ($MyInvocation.InvocationName -ne '.') {
Write-Error "ERROR: dot-source this file, don't execute it: . .\setenv.ps1"
exit 1
}
# Required: Confluence REST API base URL
$env:CONFLUENCE_HOST = "https://your-confluence.example.com/confluence/rest/api"
# Required: Personal Access Token for Confluence
$env:CONFLUENCE_TOKEN = "your-token"
# Optional: Separate integration Confluence instance (defaults to CONFLUENCE_HOST)
# $env:CONFLUENCE_INT_HOST = "https://your-confluence-int.example.com/confluence/rest/api"
# Optional: Token for integration instance (prompted interactively if unset)
# $env:CONFLUENCE_INT_TOKEN = "your-int-token"
# Required: Confluence space key to sync into
$env:CONFLUENCE_SPACE = "MYSPACE"
# uv wrapper: auto-run osv-scanner after lockfile-changing commands
function uv {
& uv.exe @args
$rc = $LASTEXITCODE
if ($rc -eq 0) {
if ($args[0] -in @('lock', 'add', 'remove', 'sync')) {
Write-Host "Running osv-scanner..."
pre-commit run osv-scanner --all-files
}
}
return $rc
}