Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gimenete/yubikey-invalidation-action
GitHub Action that invalidates Yubikeys found in issues or issue comments
https://github.com/gimenete/yubikey-invalidation-action
Last synced: about 2 months ago
JSON representation
GitHub Action that invalidates Yubikeys found in issues or issue comments
- Host: GitHub
- URL: https://github.com/gimenete/yubikey-invalidation-action
- Owner: gimenete
- License: mit
- Created: 2020-01-16T16:17:31.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-18T19:32:41.000Z (over 2 years ago)
- Last Synced: 2024-10-09T09:40:43.884Z (3 months ago)
- Language: JavaScript
- Size: 674 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yubikey-invalidation-action
GitHub Action that invalidates Yubikeys found in issues or issue comments or any text you pass to it. At this moment it only invalidates the first one it founds.
![](screenshot.png)
Example workflow:
```yaml
name: YubiKey
on: [issues, issue_comment]jobs:
invalidate:
runs-on: ubuntu-latest
name: Invalidate YubiKeys
steps:
- name: Find and invalidate
id: invalidate
uses: gimenete/yubikey-invalidation-action@master
with:
YUBIKEY_API_ID: 11111
text: ${{ github.event.comment.body || github.event.issue.body }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
payload: ${{ toJSON(github.event) }}
```You can get an API ID from Yubico here https://upgrade.yubico.com/getapikey/
The `GITHUB_TOKEN` and the `payload` are only required if you want it to automatically leave an issue comment.
The action also outputs:
- `message`: A summary of what the action did
- `found`: Whether or not a YubiKey was found
- `invalidated`: Whether or not a YubiKey was successfully invalidated