Skip to content

Commit 54c668d

Browse files
authored
docs: add sample configuration file (#82)
1 parent 6f6f4e4 commit 54c668d

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.poutine.sample.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# When using analyze_org, ignore forked repositories in the organization
2+
# default: false
3+
ignoreForks: true
4+
5+
# Skip findings if any rules in this list matches the finding's properties.
6+
# Each rule can have the following keys: job, level, osv_id, path, purl, rule.
7+
# The value of each key is a string or a list of strings.
8+
# default: []
9+
skip:
10+
11+
12+
skipExamples:
13+
# skip findings by rule level (one of: note, warning, error)
14+
- level: note
15+
16+
# skip findings at a given path
17+
- path: .github/workflows/safe.yml
18+
19+
# skip findings of a given rule
20+
- rule: unpinnable_action
21+
22+
# skip findings of a rule at given paths
23+
- rule: pr_runs_on_self_hosted
24+
path:
25+
- .github/workflows/pr.yml
26+
27+
# skip findings of a rule about a list of packages
28+
- rule: github_action_from_unverified_creator_used
29+
purl:
30+
- pkg:githubactions/dorny/paths-filter
31+
- pkg:githubactions/golangci/golangci-lint-action
32+
33+
# skip findings of a rule for a list of repositories
34+
- rule: pr_runs_on_self_hosted
35+
purl:
36+
- pkg:github/org/repo
37+
38+
# skip findings by OSV ID
39+
- osv_id:
40+
- GHSA-mcph-m25j-8j63

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,12 @@ poutine analyze_org my-org/project --token "$GL_TOKEN" --scm gitlab --scm-base-u
102102
--scm SCM platform (default: github, gitlab)
103103
--scm-base-uri Base URI of the self-hosted SCM instance
104104
--threads Number of threads to use (default: 2)
105+
--config Path to the configuration file (default: .poutine.yml)
105106
--verbose Enable debug logging
106107
```
107108

109+
See [.poutine.sample.yml](.poutine.sample.yml) for an example configuration file.
110+
108111
## Building from source
109112

110113
Building `poutine` requires Go 1.22.

0 commit comments

Comments
 (0)