-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Provide a workflow verifying an unprotected python script
emits 'hello voraus'. This script will be protected later and the workflow altered to ensure it does not emit without an AxProtector user runtime being present.
- Loading branch information
1 parent
0532a1b
commit 727bc8a
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 unprotected script emits "hello voraus" | ||
run: ./resources/greeting.py | grep -q "hello voraus" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |