@codyswann/lisa 4.55.8 → 4.55.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +9 -8
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +3 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-read-ticket/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-read-ticket/scripts/download-attachment.sh +57 -5
- package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +3 -0
- package/plugins/lisa/skills/lisa-jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa/skills/lisa-jira-read-ticket/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-jira-read-ticket/scripts/download-attachment.sh +57 -5
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-agy/skills/lisa-jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-agy/skills/lisa-jira-read-ticket/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-read-ticket/scripts/download-attachment.sh +57 -5
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/skills/lisa-jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-copilot/skills/lisa-jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-copilot/skills/lisa-jira-read-ticket/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-jira-read-ticket/scripts/download-attachment.sh +57 -5
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-cursor/skills/lisa-jira-read-ticket/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-read-ticket/scripts/download-attachment.sh +57 -5
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-expo/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-expo-agy/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-expo-copilot/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-expo-cursor/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-rails/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-rails-agy/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-rails-copilot/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-rails-cursor/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/src/base/skills/lisa-jira-evidence/SKILL.md +3 -0
- package/plugins/src/base/skills/lisa-jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/src/base/skills/lisa-jira-read-ticket/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-jira-read-ticket/scripts/download-attachment.sh +57 -5
- package/plugins/src/expo/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/src/expo/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/src/rails/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/src/rails/skills/jira-evidence/scripts/post-evidence.sh +32 -2
|
@@ -73,8 +73,38 @@ else
|
|
|
73
73
|
echo " writes the project config — or run 'jira init' locally." >&2
|
|
74
74
|
exit 1
|
|
75
75
|
fi
|
|
76
|
-
JIRA_SERVER=$(
|
|
76
|
+
JIRA_SERVER=$(sed -n 's/^server:[[:space:]]*//p' "$JIRA_CONFIG")
|
|
77
77
|
JIRA_USER=$(grep '^login:' "$JIRA_CONFIG" | awk '{print $2}')
|
|
78
|
+
# Validate before constructing credentials; use only the approved HTTPS origin.
|
|
79
|
+
JIRA_SERVER=$(python3 - "$JIRA_SERVER" <<'PY_ORIGIN'
|
|
80
|
+
import ipaddress
|
|
81
|
+
import re
|
|
82
|
+
import sys
|
|
83
|
+
from urllib.parse import urlsplit
|
|
84
|
+
|
|
85
|
+
raw = sys.argv[1]
|
|
86
|
+
try:
|
|
87
|
+
if not raw or any(c <= " " or c >= "\x7f" for c in raw):
|
|
88
|
+
raise ValueError()
|
|
89
|
+
url = urlsplit(raw)
|
|
90
|
+
if (url.scheme != "https" or "@" in url.netloc or "?" in raw
|
|
91
|
+
or "#" in raw or url.path not in ("", "/") or not url.hostname):
|
|
92
|
+
raise ValueError()
|
|
93
|
+
host = url.hostname
|
|
94
|
+
if url.netloc.startswith("["):
|
|
95
|
+
host = f"[{ipaddress.IPv6Address(host).compressed}]"
|
|
96
|
+
elif not re.fullmatch(r"[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*", host):
|
|
97
|
+
raise ValueError()
|
|
98
|
+
port = url.port
|
|
99
|
+
if port == 0:
|
|
100
|
+
raise ValueError()
|
|
101
|
+
suffix = f":{port}" if port is not None and port != 443 else ""
|
|
102
|
+
print(f"https://{host}{suffix}")
|
|
103
|
+
except ValueError:
|
|
104
|
+
sys.exit("ERROR: JIRA_SERVER must be a bare HTTPS origin without userinfo, path, query or fragment.")
|
|
105
|
+
PY_ORIGIN
|
|
106
|
+
)
|
|
107
|
+
|
|
78
108
|
GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
79
109
|
RELEASE_TAG="pr-assets"
|
|
80
110
|
|
|
@@ -104,7 +134,7 @@ fi
|
|
|
104
134
|
echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidence files to upload"
|
|
105
135
|
|
|
106
136
|
# Compute JIRA auth early (used in steps 3 and 4)
|
|
107
|
-
JIRA_AUTH=$(
|
|
137
|
+
JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
|
|
108
138
|
|
|
109
139
|
# ── Step 1: Upload to GitHub pr-assets release ──────────────────────────────
|
|
110
140
|
echo ""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.55.
|
|
3
|
+
"version": "4.55.9",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.55.
|
|
3
|
+
"version": "4.55.9",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.55.
|
|
3
|
+
"version": "4.55.9",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.55.
|
|
3
|
+
"version": "4.55.9",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.55.
|
|
3
|
+
"version": "4.55.9",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -17,6 +17,9 @@ Upload captured evidence and generated templates to GitHub PR description and JI
|
|
|
17
17
|
|
|
18
18
|
## Prerequisites
|
|
19
19
|
|
|
20
|
+
- `python3` for destination validation. Configure `server` as a bare HTTPS origin:
|
|
21
|
+
no userinfo, path prefix, query, or fragment. Invalid destinations are rejected
|
|
22
|
+
before Basic authorization is constructed.
|
|
20
23
|
- `JIRA_API_TOKEN` environment variable set
|
|
21
24
|
- a jira-cli config — `.lisa/jira-cli/.config.yml` if the `setup-jira-cli`
|
|
22
25
|
SessionStart hook wrote one, otherwise `~/.config/.jira/.config.yml`. `server`
|
|
@@ -73,8 +73,38 @@ else
|
|
|
73
73
|
echo " writes the project config — or run 'jira init' locally." >&2
|
|
74
74
|
exit 1
|
|
75
75
|
fi
|
|
76
|
-
JIRA_SERVER=$(
|
|
76
|
+
JIRA_SERVER=$(sed -n 's/^server:[[:space:]]*//p' "$JIRA_CONFIG")
|
|
77
77
|
JIRA_USER=$(grep '^login:' "$JIRA_CONFIG" | awk '{print $2}')
|
|
78
|
+
# Validate before constructing credentials; use only the approved HTTPS origin.
|
|
79
|
+
JIRA_SERVER=$(python3 - "$JIRA_SERVER" <<'PY_ORIGIN'
|
|
80
|
+
import ipaddress
|
|
81
|
+
import re
|
|
82
|
+
import sys
|
|
83
|
+
from urllib.parse import urlsplit
|
|
84
|
+
|
|
85
|
+
raw = sys.argv[1]
|
|
86
|
+
try:
|
|
87
|
+
if not raw or any(c <= " " or c >= "\x7f" for c in raw):
|
|
88
|
+
raise ValueError()
|
|
89
|
+
url = urlsplit(raw)
|
|
90
|
+
if (url.scheme != "https" or "@" in url.netloc or "?" in raw
|
|
91
|
+
or "#" in raw or url.path not in ("", "/") or not url.hostname):
|
|
92
|
+
raise ValueError()
|
|
93
|
+
host = url.hostname
|
|
94
|
+
if url.netloc.startswith("["):
|
|
95
|
+
host = f"[{ipaddress.IPv6Address(host).compressed}]"
|
|
96
|
+
elif not re.fullmatch(r"[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*", host):
|
|
97
|
+
raise ValueError()
|
|
98
|
+
port = url.port
|
|
99
|
+
if port == 0:
|
|
100
|
+
raise ValueError()
|
|
101
|
+
suffix = f":{port}" if port is not None and port != 443 else ""
|
|
102
|
+
print(f"https://{host}{suffix}")
|
|
103
|
+
except ValueError:
|
|
104
|
+
sys.exit("ERROR: JIRA_SERVER must be a bare HTTPS origin without userinfo, path, query or fragment.")
|
|
105
|
+
PY_ORIGIN
|
|
106
|
+
)
|
|
107
|
+
|
|
78
108
|
GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
79
109
|
RELEASE_TAG="pr-assets"
|
|
80
110
|
|
|
@@ -104,7 +134,7 @@ fi
|
|
|
104
134
|
echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidence files to upload"
|
|
105
135
|
|
|
106
136
|
# Compute JIRA auth early (used in steps 3 and 4)
|
|
107
|
-
JIRA_AUTH=$(
|
|
137
|
+
JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
|
|
108
138
|
|
|
109
139
|
# ── Step 1: Upload to GitHub pr-assets release ──────────────────────────────
|
|
110
140
|
echo ""
|
|
@@ -17,6 +17,9 @@ Upload captured evidence and generated templates to GitHub PR description and JI
|
|
|
17
17
|
|
|
18
18
|
## Prerequisites
|
|
19
19
|
|
|
20
|
+
- `python3` for destination validation. Configure `server` as a bare HTTPS origin:
|
|
21
|
+
no userinfo, path prefix, query, or fragment. Invalid destinations are rejected
|
|
22
|
+
before Basic authorization is constructed.
|
|
20
23
|
- `JIRA_API_TOKEN` environment variable set
|
|
21
24
|
- a jira-cli config — `.lisa/jira-cli/.config.yml` if the `setup-jira-cli`
|
|
22
25
|
SessionStart hook wrote one, otherwise `~/.config/.jira/.config.yml`. `server`
|
|
@@ -73,8 +73,38 @@ else
|
|
|
73
73
|
echo " writes the project config — or run 'jira init' locally." >&2
|
|
74
74
|
exit 1
|
|
75
75
|
fi
|
|
76
|
-
JIRA_SERVER=$(
|
|
76
|
+
JIRA_SERVER=$(sed -n 's/^server:[[:space:]]*//p' "$JIRA_CONFIG")
|
|
77
77
|
JIRA_USER=$(grep '^login:' "$JIRA_CONFIG" | awk '{print $2}')
|
|
78
|
+
# Validate before constructing credentials; use only the approved HTTPS origin.
|
|
79
|
+
JIRA_SERVER=$(python3 - "$JIRA_SERVER" <<'PY_ORIGIN'
|
|
80
|
+
import ipaddress
|
|
81
|
+
import re
|
|
82
|
+
import sys
|
|
83
|
+
from urllib.parse import urlsplit
|
|
84
|
+
|
|
85
|
+
raw = sys.argv[1]
|
|
86
|
+
try:
|
|
87
|
+
if not raw or any(c <= " " or c >= "\x7f" for c in raw):
|
|
88
|
+
raise ValueError()
|
|
89
|
+
url = urlsplit(raw)
|
|
90
|
+
if (url.scheme != "https" or "@" in url.netloc or "?" in raw
|
|
91
|
+
or "#" in raw or url.path not in ("", "/") or not url.hostname):
|
|
92
|
+
raise ValueError()
|
|
93
|
+
host = url.hostname
|
|
94
|
+
if url.netloc.startswith("["):
|
|
95
|
+
host = f"[{ipaddress.IPv6Address(host).compressed}]"
|
|
96
|
+
elif not re.fullmatch(r"[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*", host):
|
|
97
|
+
raise ValueError()
|
|
98
|
+
port = url.port
|
|
99
|
+
if port == 0:
|
|
100
|
+
raise ValueError()
|
|
101
|
+
suffix = f":{port}" if port is not None and port != 443 else ""
|
|
102
|
+
print(f"https://{host}{suffix}")
|
|
103
|
+
except ValueError:
|
|
104
|
+
sys.exit("ERROR: JIRA_SERVER must be a bare HTTPS origin without userinfo, path, query or fragment.")
|
|
105
|
+
PY_ORIGIN
|
|
106
|
+
)
|
|
107
|
+
|
|
78
108
|
GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
79
109
|
RELEASE_TAG="pr-assets"
|
|
80
110
|
|
|
@@ -104,7 +134,7 @@ fi
|
|
|
104
134
|
echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidence files to upload"
|
|
105
135
|
|
|
106
136
|
# Compute JIRA auth early (used in steps 3 and 4)
|
|
107
|
-
JIRA_AUTH=$(
|
|
137
|
+
JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
|
|
108
138
|
|
|
109
139
|
# ── Step 1: Upload to GitHub pr-assets release ──────────────────────────────
|
|
110
140
|
echo ""
|
|
@@ -17,6 +17,9 @@ Upload captured evidence and generated templates to GitHub PR description and JI
|
|
|
17
17
|
|
|
18
18
|
## Prerequisites
|
|
19
19
|
|
|
20
|
+
- `python3` for destination validation. Configure `server` as a bare HTTPS origin:
|
|
21
|
+
no userinfo, path prefix, query, or fragment. Invalid destinations are rejected
|
|
22
|
+
before Basic authorization is constructed.
|
|
20
23
|
- `JIRA_API_TOKEN` environment variable set
|
|
21
24
|
- a jira-cli config — `.lisa/jira-cli/.config.yml` if the `setup-jira-cli`
|
|
22
25
|
SessionStart hook wrote one, otherwise `~/.config/.jira/.config.yml`. `server`
|
|
@@ -73,8 +73,38 @@ else
|
|
|
73
73
|
echo " writes the project config — or run 'jira init' locally." >&2
|
|
74
74
|
exit 1
|
|
75
75
|
fi
|
|
76
|
-
JIRA_SERVER=$(
|
|
76
|
+
JIRA_SERVER=$(sed -n 's/^server:[[:space:]]*//p' "$JIRA_CONFIG")
|
|
77
77
|
JIRA_USER=$(grep '^login:' "$JIRA_CONFIG" | awk '{print $2}')
|
|
78
|
+
# Validate before constructing credentials; use only the approved HTTPS origin.
|
|
79
|
+
JIRA_SERVER=$(python3 - "$JIRA_SERVER" <<'PY_ORIGIN'
|
|
80
|
+
import ipaddress
|
|
81
|
+
import re
|
|
82
|
+
import sys
|
|
83
|
+
from urllib.parse import urlsplit
|
|
84
|
+
|
|
85
|
+
raw = sys.argv[1]
|
|
86
|
+
try:
|
|
87
|
+
if not raw or any(c <= " " or c >= "\x7f" for c in raw):
|
|
88
|
+
raise ValueError()
|
|
89
|
+
url = urlsplit(raw)
|
|
90
|
+
if (url.scheme != "https" or "@" in url.netloc or "?" in raw
|
|
91
|
+
or "#" in raw or url.path not in ("", "/") or not url.hostname):
|
|
92
|
+
raise ValueError()
|
|
93
|
+
host = url.hostname
|
|
94
|
+
if url.netloc.startswith("["):
|
|
95
|
+
host = f"[{ipaddress.IPv6Address(host).compressed}]"
|
|
96
|
+
elif not re.fullmatch(r"[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*", host):
|
|
97
|
+
raise ValueError()
|
|
98
|
+
port = url.port
|
|
99
|
+
if port == 0:
|
|
100
|
+
raise ValueError()
|
|
101
|
+
suffix = f":{port}" if port is not None and port != 443 else ""
|
|
102
|
+
print(f"https://{host}{suffix}")
|
|
103
|
+
except ValueError:
|
|
104
|
+
sys.exit("ERROR: JIRA_SERVER must be a bare HTTPS origin without userinfo, path, query or fragment.")
|
|
105
|
+
PY_ORIGIN
|
|
106
|
+
)
|
|
107
|
+
|
|
78
108
|
GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
79
109
|
RELEASE_TAG="pr-assets"
|
|
80
110
|
|
|
@@ -104,7 +134,7 @@ fi
|
|
|
104
134
|
echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidence files to upload"
|
|
105
135
|
|
|
106
136
|
# Compute JIRA auth early (used in steps 3 and 4)
|
|
107
|
-
JIRA_AUTH=$(
|
|
137
|
+
JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
|
|
108
138
|
|
|
109
139
|
# ── Step 1: Upload to GitHub pr-assets release ──────────────────────────────
|
|
110
140
|
echo ""
|
|
@@ -17,6 +17,9 @@ Upload captured evidence and generated templates to GitHub PR description and JI
|
|
|
17
17
|
|
|
18
18
|
## Prerequisites
|
|
19
19
|
|
|
20
|
+
- `python3` for destination validation. Configure `server` as a bare HTTPS origin:
|
|
21
|
+
no userinfo, path prefix, query, or fragment. Invalid destinations are rejected
|
|
22
|
+
before Basic authorization is constructed.
|
|
20
23
|
- `JIRA_API_TOKEN` environment variable set
|
|
21
24
|
- a jira-cli config — `.lisa/jira-cli/.config.yml` if the `setup-jira-cli`
|
|
22
25
|
SessionStart hook wrote one, otherwise `~/.config/.jira/.config.yml`. `server`
|
|
@@ -73,8 +73,38 @@ else
|
|
|
73
73
|
echo " writes the project config — or run 'jira init' locally." >&2
|
|
74
74
|
exit 1
|
|
75
75
|
fi
|
|
76
|
-
JIRA_SERVER=$(
|
|
76
|
+
JIRA_SERVER=$(sed -n 's/^server:[[:space:]]*//p' "$JIRA_CONFIG")
|
|
77
77
|
JIRA_USER=$(grep '^login:' "$JIRA_CONFIG" | awk '{print $2}')
|
|
78
|
+
# Validate before constructing credentials; use only the approved HTTPS origin.
|
|
79
|
+
JIRA_SERVER=$(python3 - "$JIRA_SERVER" <<'PY_ORIGIN'
|
|
80
|
+
import ipaddress
|
|
81
|
+
import re
|
|
82
|
+
import sys
|
|
83
|
+
from urllib.parse import urlsplit
|
|
84
|
+
|
|
85
|
+
raw = sys.argv[1]
|
|
86
|
+
try:
|
|
87
|
+
if not raw or any(c <= " " or c >= "\x7f" for c in raw):
|
|
88
|
+
raise ValueError()
|
|
89
|
+
url = urlsplit(raw)
|
|
90
|
+
if (url.scheme != "https" or "@" in url.netloc or "?" in raw
|
|
91
|
+
or "#" in raw or url.path not in ("", "/") or not url.hostname):
|
|
92
|
+
raise ValueError()
|
|
93
|
+
host = url.hostname
|
|
94
|
+
if url.netloc.startswith("["):
|
|
95
|
+
host = f"[{ipaddress.IPv6Address(host).compressed}]"
|
|
96
|
+
elif not re.fullmatch(r"[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*", host):
|
|
97
|
+
raise ValueError()
|
|
98
|
+
port = url.port
|
|
99
|
+
if port == 0:
|
|
100
|
+
raise ValueError()
|
|
101
|
+
suffix = f":{port}" if port is not None and port != 443 else ""
|
|
102
|
+
print(f"https://{host}{suffix}")
|
|
103
|
+
except ValueError:
|
|
104
|
+
sys.exit("ERROR: JIRA_SERVER must be a bare HTTPS origin without userinfo, path, query or fragment.")
|
|
105
|
+
PY_ORIGIN
|
|
106
|
+
)
|
|
107
|
+
|
|
78
108
|
GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
79
109
|
RELEASE_TAG="pr-assets"
|
|
80
110
|
|
|
@@ -104,7 +134,7 @@ fi
|
|
|
104
134
|
echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidence files to upload"
|
|
105
135
|
|
|
106
136
|
# Compute JIRA auth early (used in steps 3 and 4)
|
|
107
|
-
JIRA_AUTH=$(
|
|
137
|
+
JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
|
|
108
138
|
|
|
109
139
|
# ── Step 1: Upload to GitHub pr-assets release ──────────────────────────────
|
|
110
140
|
echo ""
|
|
@@ -17,6 +17,9 @@ Upload captured evidence and generated templates to GitHub PR description and JI
|
|
|
17
17
|
|
|
18
18
|
## Prerequisites
|
|
19
19
|
|
|
20
|
+
- `python3` for destination validation. Configure `server` as a bare HTTPS origin:
|
|
21
|
+
no userinfo, path prefix, query, or fragment. Invalid destinations are rejected
|
|
22
|
+
before Basic authorization is constructed.
|
|
20
23
|
- `JIRA_API_TOKEN` environment variable set
|
|
21
24
|
- a jira-cli config — `.lisa/jira-cli/.config.yml` if the `setup-jira-cli`
|
|
22
25
|
SessionStart hook wrote one, otherwise `~/.config/.jira/.config.yml`. `server`
|
|
@@ -73,8 +73,38 @@ else
|
|
|
73
73
|
echo " writes the project config — or run 'jira init' locally." >&2
|
|
74
74
|
exit 1
|
|
75
75
|
fi
|
|
76
|
-
JIRA_SERVER=$(
|
|
76
|
+
JIRA_SERVER=$(sed -n 's/^server:[[:space:]]*//p' "$JIRA_CONFIG")
|
|
77
77
|
JIRA_USER=$(grep '^login:' "$JIRA_CONFIG" | awk '{print $2}')
|
|
78
|
+
# Validate before constructing credentials; use only the approved HTTPS origin.
|
|
79
|
+
JIRA_SERVER=$(python3 - "$JIRA_SERVER" <<'PY_ORIGIN'
|
|
80
|
+
import ipaddress
|
|
81
|
+
import re
|
|
82
|
+
import sys
|
|
83
|
+
from urllib.parse import urlsplit
|
|
84
|
+
|
|
85
|
+
raw = sys.argv[1]
|
|
86
|
+
try:
|
|
87
|
+
if not raw or any(c <= " " or c >= "\x7f" for c in raw):
|
|
88
|
+
raise ValueError()
|
|
89
|
+
url = urlsplit(raw)
|
|
90
|
+
if (url.scheme != "https" or "@" in url.netloc or "?" in raw
|
|
91
|
+
or "#" in raw or url.path not in ("", "/") or not url.hostname):
|
|
92
|
+
raise ValueError()
|
|
93
|
+
host = url.hostname
|
|
94
|
+
if url.netloc.startswith("["):
|
|
95
|
+
host = f"[{ipaddress.IPv6Address(host).compressed}]"
|
|
96
|
+
elif not re.fullmatch(r"[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*", host):
|
|
97
|
+
raise ValueError()
|
|
98
|
+
port = url.port
|
|
99
|
+
if port == 0:
|
|
100
|
+
raise ValueError()
|
|
101
|
+
suffix = f":{port}" if port is not None and port != 443 else ""
|
|
102
|
+
print(f"https://{host}{suffix}")
|
|
103
|
+
except ValueError:
|
|
104
|
+
sys.exit("ERROR: JIRA_SERVER must be a bare HTTPS origin without userinfo, path, query or fragment.")
|
|
105
|
+
PY_ORIGIN
|
|
106
|
+
)
|
|
107
|
+
|
|
78
108
|
GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
79
109
|
RELEASE_TAG="pr-assets"
|
|
80
110
|
|
|
@@ -104,7 +134,7 @@ fi
|
|
|
104
134
|
echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidence files to upload"
|
|
105
135
|
|
|
106
136
|
# Compute JIRA auth early (used in steps 3 and 4)
|
|
107
|
-
JIRA_AUTH=$(
|
|
137
|
+
JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
|
|
108
138
|
|
|
109
139
|
# ── Step 1: Upload to GitHub pr-assets release ──────────────────────────────
|
|
110
140
|
echo ""
|