Skip to content
This OpenFaaS function will store a gist using the GitHub Gist API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
store-gist
.DEREK.yml
.gitignore
LICENSE
README.md
pub-cert.pem
secrets.yml
stack.yml

README.md

store-gist

This function will store a gist using the GitHub Gist API. It uses OpenFaaS Cloud and an OAuth token sealed as a SealedSecret.

  • Create the secret for your own account:
faas-cli cloud seal --name alexellis-store-gist --literal github-token=$TOKEN --cert=./pub-cert.pem

Example of posting to Gist adapted from blog post by Minhazul Haque

This could also be achieved by vendoring the following library: https://github.com/google/go-github

You can’t perform that action at this time.