Skip to content

Commit

Permalink
chore: add github token to syft update check (#405)
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Zantow <kzantow@gmail.com>
  • Loading branch information
kzantow committed Apr 3, 2023
1 parent 422cb34 commit c6a64da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update-syft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: |
LATEST_VERSION=$(curl "https://api.github.com/repos/anchore/syft/releases/latest" 2>/dev/null | jq -r '.tag_name')
LATEST_VERSION=$(curl -H "Accept: application/json" -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/anchore/syft/releases/latest" 2>/dev/null | jq -r '.tag_name')
echo "export const VERSION = \"$LATEST_VERSION\";" > src/SyftVersion.ts
# install husky hooks and dependencies:
npm install
Expand Down

0 comments on commit c6a64da

Please sign in to comment.