Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/quickstart-lifecycle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

- name: Upload lifecycle evidence
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0 # v7.0.1
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: launcher-quickstart-ubuntu
path: |
Expand Down
9 changes: 9 additions & 0 deletions tests/test_quickstart_lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import importlib.util
import json
import re
import subprocess
from pathlib import Path

Expand Down Expand Up @@ -95,3 +96,11 @@ def test_workflow_runs_the_public_command_in_one_bounded_weekly_job():
run = next(step["run"] for step in steps if step.get("name", "").startswith("Run"))
assert "scripts/quickstart_lifecycle.py" in run
assert "--browser-with-deps" in run


def test_workflow_pins_actions_to_full_commit_shas():
workflow = WORKFLOW.read_text(encoding="utf-8")
action_refs = re.findall(r"(?m)^\s*uses:\s+\S+@([^\s#]+)", workflow)

assert action_refs
assert all(re.fullmatch(r"[0-9a-f]{40}", ref) for ref in action_refs)