Skip to content

Commit 96a8178

Browse files
authored
Merge pull request #142 from vasac/add-macaron
Add macaron
2 parents 73b1d95 + b1384d6 commit 96a8178

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

.github/macaron/defaults.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[analysis.checks]
2+
exclude =
3+
mcn_build_as_code_1
4+
mcn_build_service_1
5+
mcn_find_artifact_pipeline_1
6+
mcn_provenance_available_1
7+
mcn_provenance_verified_1
8+
mcn_provenance_derived_commit_1
9+
mcn_provenance_derived_repo_1
10+
mcn_provenance_witness_level_one_1
11+
mcn_provenance_expectation_1
12+
mcn_trusted_builder_level_three_1
13+
include = *
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Macaron check-github-actions
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/**"
7+
- ".github/actions/**"
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- ".github/workflows/**"
13+
- ".github/actions/**"
14+
workflow_dispatch:
15+
schedule:
16+
- cron: "17 4 * * 1"
17+
18+
permissions:
19+
contents: read
20+
21+
jobs:
22+
macaron-check-github-actions:
23+
name: Macaron policy verification
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
28+
with:
29+
fetch-depth: 0
30+
persist-credentials: false
31+
32+
- name: Run Macaron check-github-actions policy
33+
uses: oracle/macaron@b31acfe389133a5587d9639063ec70cb84e7bc47 # v0.23.0
34+
with:
35+
repo_path: ./
36+
defaults_path: .github/macaron/defaults.ini
37+
policy_file: check-github-actions
38+
policy_purl: pkg:github.com/${{ github.repository }}@.*
39+
reports_retention_days: 90

0 commit comments

Comments
 (0)