Skip to content

Commit 4d72357

Browse files
authored
minor fixes to url validation
1 parent 70f58a7 commit 4d72357

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/scripts/send-advisory.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
latest_advisory = max(Path("docs/advisories").glob("*.md"))
88
today = latest_advisory.name[:8]
99
advisory_mds = {}
10-
base_url = "https://soc.cyber.wa.gov.au/"
10+
base_url = "https://soc.cyber.wa.gov.au/advisories/"
1111

1212
if sys.argv[1].startswith(base_url):
1313
# If a url is provided, find the relevant advisory and send it
@@ -21,7 +21,7 @@
2121
print(file)
2222
if file.startswith(f"docs/advisories/{today}"):
2323
file = Path(file)
24-
url = base_url + file.relative_to("docs").stem
24+
url = base_url + file.stem
2525
advisory_mds[url] = file.read_text()
2626

2727
print("Preparing to send below advisories: ")

0 commit comments

Comments
 (0)