Skip to content

Commit 1f4ae0d

Browse files
committed
Default to wildcard output in actions allow list generator
Remove duplicate SHA list output, only show wildcards by default. Add --exact flag to generate exact SHAs when needed
1 parent f11aaa4 commit 1f4ae0d

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

scripts/generate-actions-allow-list.mjs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,6 @@ async function main() {
152152
allowListActions.map(action => `${indent}${action}`).join(',\n') + ','
153153
logger.log(allowList)
154154

155-
if (!useExactSha) {
156-
logger.log('')
157-
logger.log('## Specific SHAs Used (for reference):')
158-
logger.log('')
159-
const specificList =
160-
allActions.map(action => `${indent}${action}`).join(',\n') + ','
161-
logger.log(specificList)
162-
}
163-
164155
logger.log('')
165156
logger.info(`Total: ${allActions.length} actions/workflows`)
166157
logger.log('')
@@ -180,8 +171,11 @@ async function main() {
180171
console.log(
181172
'💡 Tip: Run `pnpm run generate:actions-allow-list --copy` to copy the allow list to clipboard',
182173
)
174+
}
175+
176+
if (!useExactSha) {
183177
console.log(
184-
'💡 Tip: Add `--exact` flag to use exact SHAs instead of version wildcards',
178+
'💡 Tip: Add `--exact` flag to generate list with exact commit SHAs instead of version wildcards',
185179
)
186180
}
187181
}

0 commit comments

Comments
 (0)