airbus-cyber / ghidralligator

Apache License 2.0
301 stars 23 forks source link

adding github workflow for ghidra dependency integrity check #6

Open M3NIX opened 2 months ago

M3NIX commented 2 months ago

This pull requests adds a github workflow to check if the ghidra dependency files are valid by comparing the hash values of the release. This workflow will run for every push in the main branch aswell for pull requests.

To configure the ghidra version the workflow should check against, two environment variables need to be set. If the download url is https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_11.0.3_build/ghidra_11.0.3_PUBLIC_20240410.zip the variables need to be:

GHIDRA_VERSION: 11.0.3
GHIDRA_RELEASE_DATE: 20240410

Here you can see two example runs of a failed and of a successful run: https://github.com/M3NIX/ghidralligator/actions