Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
code

GitHub Action

Setup Ghidra Action

v1.1.0

Setup Ghidra Action

code

Setup Ghidra Action

Setup Ghidra environment

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Ghidra Action

uses: antoniovazquezblanco/[email protected]

Learn more about this action in antoniovazquezblanco/setup-ghidra

Choose a version

CI

setup-ghidra

This action sets up a Ghidra environment for use in actions. Specific Ghidra versions can be selected and even releases from custom forks can be used.

This action will automatically set the GHIDRA_INSTALL_PATH variable in your environment.

The action will fail if no matching versions are found.

Usage

Basic:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: antoniovazquezblanco/setup-ghidra@master

Advanced:

strategy:
  matrix:
    ghidra:
      - "10.4"
      - "10.3"
      - "10.2"

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: antoniovazquezblanco/setup-ghidra@master
  with:
    version: ${{ matrix.ghidra }}

- name: Build something with Ghidra ${{ matrix.version }}
  uses: gradle/[email protected]
  with:
    gradle-version: 7.3
    arguments: -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }}

For a full reference of action parameters see action.yml

- uses: antoniovazquezblanco/setup-ghidra@master
  with:
    # A distribution download URL to directly download and install it.
    # If this argument is specified, both the repository and version arguments
    # will be ignored.
    # Example:
    # download_url: 'https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_10.4_build/ghidra_10.4_PUBLIC_20230928.zip'
    download_url: ''

    # The owner of the repository to look for Ghidra releases. By default, NSA
    # official user is used.
    owner: 'NationalSecurityAgency'

    # A repository on which to find releases. By default, NSA official repo
    # name is used.
    repository: 'ghidra'

    # Version spec to use. Please use SemVer notation. It also accepts the
    # 'latest' alias to download the latest version available.
    version: 'latest'