Skip to content

Commit

Permalink
Add an authentication option to avoid API limits
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniovazquezblanco committed Dec 31, 2023
1 parent 6a48e2a commit 2fcb0f3
Show file tree
Hide file tree
Showing 9 changed files with 323 additions and 140 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ steps:
- uses: actions/setup-java@v4
- uses: antoniovazquezblanco/setup-ghidra@master
with:
auth_token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ matrix.ghidra }}

- name: Build something with Ghidra ${{ matrix.version }}
Expand Down Expand Up @@ -68,4 +69,7 @@ For a full reference of action parameters see [action.yml](action.yml)
# Version spec to use. Please use SemVer notation. It also accepts the
# 'latest' alias to download the latest version available.
version: 'latest'

# Github authentication token to avoid API limiting.
version: ${{ secrets.GITHUB_TOKEN }}
```
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ inputs:
version:
description: 'Ghidra version.'
default: 'latest'
auth_token:
description: 'GitHub token for authentication.'
default: ''

runs:
using: 'node20'
Expand Down
Loading

0 comments on commit 2fcb0f3

Please sign in to comment.