Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Provide a workflow verifying an unprotected python script #24

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ jobs:
uses: ./.github/workflows/ci_ubuntu_verify_repo.yml
ubuntu_verify_installation:
uses: ./.github/workflows/ci_ubuntu_verify_installation.yml
ubuntu_verify_protected_python:
uses: ./.github/workflows/ci_ubuntu_verify_protected_python.yml
14 changes: 14 additions & 0 deletions .github/workflows/ci_ubuntu_verify_protected_python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: CI ubuntu verify protected python
'on':
workflow_call: null
jobs:
python_script_is_protected:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v4
- name: Verify the protected script does not emit "hello voraus"
run: ./resources/greeting.py | grep -iq "hello voraus"
11 changes: 11 additions & 0 deletions resources/greeting.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env python3
"""A executable module containing a greeter to be protected by AxProtector."""


def greet_voraus() -> None:
"""Greet voraus briefly."""
print("hello voraus")


if __name__ == "__main__":
greet_voraus()