Skip to content

Commit 5213d28

Browse files
committed
ci: fix publish dependency audit
1 parent da82d42 commit 5213d28

3 files changed

Lines changed: 93 additions & 37 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ dev = [
5050
"bandit[toml]>=1.9.4",
5151
"basedpyright>=1.39.9",
5252
"build>=1.5.0",
53+
"cryptography>=50.0.0",
5354
"pip>=26.1.2",
5455
"pip-audit>=2.10.1",
5556
"PyYAML>=6.0.3",

tests/test_metadata.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
)
131131
ACTIONLINT_MODULE = "github.com/rhysd/actionlint/cmd/actionlint@v1.7.12"
132132
BLACKSMITH_RUNNER_LABEL = "blacksmith-2vcpu-ubuntu-2404"
133+
GITHUB_HOSTED_RUNNER_LABEL = "ubuntu-latest"
133134
HERMES_AGENT_COMPAT_COMMAND = "uv run python scripts/check_hermes_agent_compat.py"
134135
PUBLIC_SAFETY_COMMAND = "uv run python scripts/check_public_safety.py"
135136
EXPECTED_PUBLIC_IGNORE_PATTERNS = [
@@ -783,14 +784,17 @@ def test_public_repo_ignore_rules_cover_local_artifacts() -> None:
783784
[
784785
("ci.yml", "check"),
785786
("hol-plugin-scanner.yml", "scan"),
786-
("publish.yml", "build"),
787-
("publish.yml", "publish"),
788787
],
789788
)
790789
def test_workflows_run_on_blacksmith_runner(workflow_path: str, job_name: str) -> None:
791790
assert workflow_job(workflow_path, job_name)["runs-on"] == BLACKSMITH_RUNNER_LABEL
792791

793792

793+
@pytest.mark.parametrize("job_name", ["build", "publish"])
794+
def test_publish_workflow_runs_on_github_hosted_runner(job_name: str) -> None:
795+
assert workflow_job("publish.yml", job_name)["runs-on"] == GITHUB_HOSTED_RUNNER_LABEL
796+
797+
794798
def test_actionlint_allows_blacksmith_runner_label() -> None:
795799
config = load_object_mapping(ROOT / ".github" / "actionlint.yaml")
796800
self_hosted_runner = require_mapping(config["self-hosted-runner"])

0 commit comments

Comments
 (0)