-
Notifications
You must be signed in to change notification settings - Fork 0
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 for expired/expiring keys #1
Conversation
This reverts commit edaf32f.
What happens when a key expires again? Is the same issue reopened, or is a new one created? Or would it depend whether the previous issue was closed? Could this action automatically close the issue if there's no longer an expired/expiring key for the user? |
It's only looking at open issues. So if an issue were still open when a key expired then a new one would not be created (and I would argue this isn't doing it's job!). If a previous issue had been closed, then a new issue would be created. It's only querying the first 10 open issues right now under two assumptions:
Yea, we could add the opposite check: loop through open issues and close them if the key has been updated. My hope is that devs are referencing and closing the issues when the keys are updated via PR, but it wouldn't hurt to have the extra check. I created #2 to track this. |
This PR creates a GitHub Action that checks a repository's blackbox keyring for expired or expiring (in one week) keys and creates an issue for each one that it finds.
You can see how to use it here (though I envision this being triggered via a schedule instead of pushes) and you can see created/updated issues in that repository as well.