feat: add github actions for macaron#1241
Merged
Merged
Conversation
39ba4f5 to
5f341ab
Compare
behnazh-w
reviewed
Nov 30, 2025
behnazh-w
reviewed
Nov 30, 2025
behnazh-w
reviewed
Nov 30, 2025
behnazh-w
reviewed
Nov 30, 2025
behnazh-w
left a comment
Member
There was a problem hiding this comment.
How about renaming tests/tutorials to tests/tutorial_resources because we also have integration tests for each tutorial tagged with tutorial. We could add a README.md to tests/tutorial_resources to explain this.
Signed-off-by: Demolus13 <parth.govale@oracle.com>
Signed-off-by: Demolus13 <parth.govale@oracle.com>
Signed-off-by: Demolus13 <parth.govale@oracle.com>
…from source. Signed-off-by: Demolus13 <parth.govale@oracle.com>
Signed-off-by: Demolus13 <parth.govale@oracle.com>
Signed-off-by: Demolus13 <parth.govale@oracle.com>
…_github_actions.yaml Signed-off-by: Demolus13 <parth.govale@oracle.com>
Signed-off-by: Demolus13 <parth.govale@oracle.com>
Signed-off-by: Demolus13 <parth.govale@oracle.com>
Signed-off-by: Demolus13 <parth.govale@oracle.com>
Signed-off-by: Demolus13 <parth.govale@oracle.com>
Signed-off-by: Demolus13 <parth.govale@oracle.com>
305da1e to
ff82091
Compare
behnazh-w
reviewed
Dec 2, 2025
Signed-off-by: Demolus13 <parth.govale@oracle.com>
Signed-off-by: Demolus13 <parth.govale@oracle.com>
Signed-off-by: Demolus13 <parth.govale@oracle.com>
behnazh-w
approved these changes
Dec 3, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an official GitHub Action (
action.yaml) to run Macaron inside GitHub workflows, a test workflow (.github/workflows/test_macaron_action.yaml) that test the Action across multiple tutorial scenarios, and a set of tutorial datalog policies undertests/tutorials/used by the workflow.Description of changes
action.yamlmacaronCLI for use in workflows.sbom_path,python_venv,package_url,repo_path,policy_file,policy_purl,defaults_path,digest,provenance_file,provenance_expectation,branch,deps_depth,github_token,output_dir,upload_attestation,subject_path.Run Macaron Analysis- constructs and runsmacaron analyzewith the provided inputs. Writes a report path to outputs on success.Run Macaron Policy Verification- runsmacaron verify-policywith a local policy file or a predefined policy (via--existing-policy), writespolicy_reportandvsa_reportoutputs, and conditionally uploads attestations viaactions/attest.policy_reportandvsa_reportfor downstream workflow steps..github/workflows/test_macaron_action.yamlRelated issues
N/A
Checklist
verifiedlabel should appear next to all of your commits on GitHub.