Skip to content

Commit

Permalink
Skip indexing into a gh action if its not an array (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
butlerx authored Nov 1, 2024
1 parent 1d8211f commit 0447003
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/knip/src/plugins/github-actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const resolveConfig: ResolveConfig = async (config, options) => {
const jobs = findByKeyDeep<Job>(config, 'steps');

for (const steps of jobs) {
if (!Array.isArray(steps.steps)) continue;
const action = steps.steps.find(
step => step.uses?.startsWith('actions/checkout@') && typeof step.with?.path === 'string' && !step.with.repository
);
Expand Down

0 comments on commit 0447003

Please sign in to comment.