Get less event information

I am getting the event information in JSON as follows

GITHUB_CONTEXT: ${{ toJson(github.event) }}

but the result of this brings a JSON with a lot of information, is there any way to filter it?

You can use whatever JSON tool you prefer. I’d use Python (which is installed on GitHub hosted runners by default) and its json module, for shell commands I’ve seen a lot of examples using jq on the forum.

Reading from the file described by github.event_path may be easier than running github.event through the shell, see github context documentation.