Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
38b9993
feat!: add more inputs to Macaron Action and improve GitHub Action an…
behnazh-w Mar 3, 2026
3d2d517
chore: add missing policy and disable some injection checks
behnazh-w Mar 28, 2026
15472da
chore: improve the action summary
behnazh-w Mar 28, 2026
2a1b123
chore: test check based summary
behnazh-w Mar 28, 2026
37e0917
feat: add sql files for existing policies
behnazh-w Mar 28, 2026
85d8019
chore: refine the summary output
behnazh-w Mar 29, 2026
42558dd
fix: fix issues in summaries
behnazh-w Mar 29, 2026
d0b409e
test: should fail when policy verify fails
behnazh-w Mar 29, 2026
a6f8639
chore: added expected failure guards
behnazh-w Mar 29, 2026
b4f1250
chore: improve the summary table
behnazh-w Mar 29, 2026
dd5ae3e
chore: test other patterns
behnazh-w Mar 29, 2026
6b3ab0b
test: debug local failure
behnazh-w Mar 29, 2026
e36ce0a
fix: fix import and policy purl input
behnazh-w Mar 29, 2026
6791380
test: run action on the test image
behnazh-w Mar 29, 2026
b528124
test: expect the gha tests to fail
behnazh-w Mar 29, 2026
dc7aa16
chore: change the table schema
behnazh-w Mar 29, 2026
9ae1305
test: test priorities
behnazh-w Mar 29, 2026
0a45490
chore: improve table summary
behnazh-w Mar 29, 2026
25a3363
chore: improve the summary and result details
behnazh-w Mar 29, 2026
9acf3d6
chore: add summary column for workflow security issues
behnazh-w Mar 29, 2026
ba38096
chore: change the table schema
behnazh-w Mar 29, 2026
2caf5bf
chore: test other bug types
behnazh-w Mar 30, 2026
add0412
fix: fix issue in report summary
behnazh-w Mar 30, 2026
c3763be
chore: add line info for script exec bug type
behnazh-w Mar 30, 2026
c1bf4b1
test: test mapping gh variables in bashparser
behnazh-w Mar 30, 2026
a1950ea
test: turn all tests on
behnazh-w Mar 30, 2026
3027e55
test: fix the snapshot content
behnazh-w Mar 30, 2026
82e7d72
chore: improve the fallback solution for ref expansion
behnazh-w Mar 30, 2026
52da55e
test: update log4j integration tests
behnazh-w Mar 30, 2026
1a93353
fix: fix duplicate repo issues
behnazh-w Mar 30, 2026
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
29 changes: 28 additions & 1 deletion .github/workflows/_build_docker.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2023 - 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2023 - 2026, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.

# This is a reuseable workflow to build and test the Docker image. Note that this workflow does not
Expand Down Expand Up @@ -63,6 +63,22 @@ jobs:
IMAGE_NAME: ghcr.io/oracle/macaron
run: make build-docker

# Export the built image so downstream jobs/workflows can load and reuse
# the exact same image without pushing to a registry.
- name: Export test Docker image
run: docker save ghcr.io/oracle/macaron:test --output /tmp/macaron-test-image.tar

# Upload the image tarball for the reusable action test workflow.
- name: Upload test Docker image artifact
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: macaron-test-image
path: /tmp/macaron-test-image.tar
if-no-files-found: error
retention-days: 1

# Install helper tooling used by integration test utilities that validate
# the built Docker image behavior.
- name: Install dependencies for integration test utility
run: make setup-integration-test-utility-for-docker

Expand All @@ -74,3 +90,14 @@ jobs:
DOCKER_PULL: never
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make integration-test-docker

test-macaron-action:
# Reuse the action test workflow against the exact Docker image built above.
# The image is transferred via artifact to avoid pushing to a registry.
needs: [build-docker]
permissions:
contents: read
uses: ./.github/workflows/test_macaron_action.yaml
with:
docker_image_artifact_name: macaron-test-image
macaron_image_tag: test
22 changes: 1 addition & 21 deletions .github/workflows/macaron-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,9 @@ jobs:
# Note: adjust the policy_purl to refer to your repository URL.
- name: Run Macaron action
id: run_macaron
continue-on-error: true
uses: oracle/macaron@fda4dda04aa7228fcaba162804891806cf5a1375 # v0.22.0
with:
repo_path: ./
policy_file: check-github-actions
policy_purl: pkg:github.com/oracle/macaron@.*

- name: Upload Macaron reports
if: ${{ always() }}
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: macaron-reports
path: |
output/reports/github_com/oracle/macaron/macaron.html
output/reports/github_com/oracle/macaron/macaron.json
output/macaron.db
if-no-files-found: warn
retention-days: 90

- name: Check Verification Summary Attestation check passes
if: ${{ always() }}
run: |
if [ ! -f output/vsa.intoto.jsonl ]; then
echo "The check-github-actions policy failed, therefore VSA was not generated at output/vsa.intoto.jsonl. Check the uploaded reports."
exit 1
fi
reports_retention_days: 90
Loading
Loading