Skip to content

Commit 19fb127

Browse files
authored
Add Macaron GitHub Action Check | Legacy Java (#748)
* Update releasepublished.yml and Add macaron-check-github-actions.yml * Added explicit workflow permissions to releasepublished.yml * Add name * Remove schedule and not related macaron changes
1 parent 9fc1b96 commit 19fb127

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright (c) 2026 - 2026, Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
3+
4+
# Run Macaron's policies and generate Verification Summary Attestation reports.
5+
# See https://github.com/oracle/macaron
6+
7+
name: Run Macaron to Check Supply Chain Security Issues
8+
on:
9+
pull_request:
10+
paths:
11+
- ".github/workflows/**"
12+
- ".github/actions/**"
13+
push:
14+
branches:
15+
- legacy/v2/master
16+
paths:
17+
- ".github/workflows/**"
18+
- ".github/actions/**"
19+
workflow_dispatch:
20+
21+
permissions:
22+
contents: read
23+
24+
jobs:
25+
macaron-check-github-actions:
26+
name: Macaron Policy Verification
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout Repository
30+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
31+
with:
32+
persist-credentials: false
33+
34+
- name: Run Macaron Security Analysis Action
35+
uses: oracle/macaron@b31acfe389133a5587d9639063ec70cb84e7bc47 # v0.23.0
36+
with:
37+
repo_path: ./
38+
policy_file: check-github-actions
39+
policy_purl: pkg:github.com/oracle/oci-java-sdk@.*
40+
reports_retention_days: 90

.github/workflows/releasepublished.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
required: true
1717
default: latest
1818

19+
permissions:
20+
contents: read
21+
1922
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
2023
jobs:
2124
# This workflow contains a single job called "build"

0 commit comments

Comments
 (0)