Github API

From UVOO Tech Wiki
Revision as of 01:39, 1 September 2021 by Busk (talk | contribs) (Created page with "``` #!/usr/bin/env bash set -e shopt -s expand_aliases alias curl="curl --user \"$GITREPO_USERr:$GITREPO_PASS\"" getSecrets(){ curl \ -H "Accept: application/vnd.gith...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
#!/usr/bin/env bash
set -e
shopt -s expand_aliases

alias curl="curl --user \"$GITREPO_USERr:$GITREPO_PASS\""


getSecrets(){
  curl \
    -H "Accept: application/vnd.github.v3+json" \
    https://api.github.com/repos/{owner/org}/{repo}/actions/secrets
}

getSecrets