Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check whether a specific action has been used #469

Open
chrisreddington opened this issue Nov 6, 2024 · 1 comment
Open

Check whether a specific action has been used #469

chrisreddington opened this issue Nov 6, 2024 · 1 comment

Comments

@chrisreddington
Copy link

I'm exploring options to determine a 'baseline' of the GitHub Actions used in workflows across a set of repositories, for example - for example, the lint step should fail if a workflow does not contain chrisreddington/my-action (regardless which version of the action is used).

There could be two different checks:

  • A check which determines whether any version of the action is used
  • A check which determines whether a specific version of the action is used

Then, I'd be able to use actionlint within a reusable workflow to determine whether a set of repositories conform to some baseline expectations.

@chrisreddington
Copy link
Author

I've taken an attempt at raising a PR for this, but it's my first time deeply looking at this codebase so I suspect I'll need some changes in the PR :)

There's one bit of the implementation that I think could also use some 👀 and a second opinion in terms of how it handles reviewing multiple jobs in a workflow. Whether it should just check for existence within the workflow, or within each individual job as well... I'm not sure I have a strong opinion on which way to go right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant