Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion patterns/workflow-generation.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@
"- Stick to facts. Do not editorialize or make recommendations.",
"- If there is no activity, create a brief report noting that.",
"- Label the report issue with `status-report`."
]
],
"min_integrity": "none"
},
"dependency-monitor": {
"icon": "package",
Expand Down
14 changes: 13 additions & 1 deletion test/workflow.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ describe('generateWorkflowFile', () => {
expect(md).toContain(' github:\n toolsets: [repos, issues, pull_requests]\n min-integrity: approved\n');
});

it('does not add min-integrity for archetypes without untrusted external content', () => {
it('sets min-integrity: none for status-report, which reads untrusted content but only summarizes', () => {
const md = generateWorkflowFile(
answers({
archetype: 'status-report',
Expand All @@ -319,6 +319,18 @@ describe('generateWorkflowFile', () => {
}),
patterns
);
expect(md).toContain(' min-integrity: none\n');
});

it('does not add min-integrity for archetypes without github toolsets', () => {
const md = generateWorkflowFile(
answers({
archetype: 'documentation-updater',
triggers: ['push'],
outputs: ['create-pull-request']
}),
patterns
);
expect(md).not.toContain('min-integrity');
});

Expand Down