Pwn Plugins Github

Drive PWN::Plugins::Github from pwn_eval.

0dayInc Updated
PWN demo: original fade-in, then a fixture playback of pwn-ai reviewing app.example.test on this host. No provider call. Not a verified engagement.

File contents

PWN::Plugins::Github

This plugin is used for interacting w/ Github's REST API using the 'rest' browser type of PWN::Plugins::TransparentBrowser. Credentials are sourced from PWN::Env[:plugins][:github]: plugins: github: username: your-gh-login personal_access_token: [set in pwn-vault] A PAT with repo + workflow scopes is sufficient for every method here AND for the gh CLI (exported as GH_TOKEN by [redacted].gh).

When to use

Call PWN::Plugins::Github from pwn_eval when the task needs this module. Do not reimplement it in shell.

Methodologies

Generated from pwn/plugins/github.rb. Prefer the public class methods below. Class methods take (opts = {}) and read opts.

How to call

PWN::Plugins::Github.help
PWN::Plugins::Github.download_all_gists(opts)

Public methods

  • download_all_gists
  • workflow_runs
  • workflow_run_jobs
  • job_log
  • open_fix_pr
  • api
  • gh
  • authors
  • help

References

  • references/urls.md — URLs from source

Source

pwn/plugins/github.rb

Verification

PWN::Plugins::Github.respond_to?(:download_all_gists) after the module is loaded. Read the source for parameter names.

0dayInc/pwn commit 0aa8c29637

Frequently asked questions

npx get-skill add 0dayinc/pwn-plugins-github