Skip to content

Instantly share code, notes, and snippets.

View VeckoTheGecko's full-sized avatar

Nick Hodgskin VeckoTheGecko

View GitHub Profile
@VeckoTheGecko
VeckoTheGecko / check_gha_pins.py
Created March 31, 2026 14:36
Check a projects GitHub Actions SHA pins match the versions
#!/usr/bin/env python3
"""In a project root, run to verify that pinned action SHAs match their version tag comments.
When GHA's are pinned like the following
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
it will parse the line and make sure the comment `v7.0.0` does indeed point to the SHA.
"""

Keybase proof

I hereby claim:

  • I am veckothegecko on github.
  • I am vecko (https://keybase.io/vecko) on keybase.
  • I have a public key ASBQQCLcoMay-FtleU4JAXvjIeBwfzpmuliubeJ31fPBMgo

To claim this, I am signing this object:

@VeckoTheGecko
VeckoTheGecko / github-to-md.py
Last active January 15, 2025 23:06
Convert GitHub search queries to markdown tables
"""
CLI tool for converting GitHub search queries to markdown tables.
Motivation:
GitHub search syntax is powerful to search for specific sets of pull requests.
This tool allows you to easily extract information on pull requests and mentioned issues
in a markdown table with links to be included in a markdown file.
Look at the CLI_DESCRIPTION variable, or run `python github-to-md.py --help` for more info.
"""
@VeckoTheGecko
VeckoTheGecko / url-checker.yml
Last active August 27, 2023 03:00
Easy URL checking GitHub Action
name: Check URL Status
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * 0
env:
LINK_TRACKING_ISSUE_NUMBER: 322