Skip to content

Commit

Permalink
chore: update grype update (#224)
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Zantow <kzantow@gmail.com>
  • Loading branch information
kzantow authored Apr 3, 2023
1 parent 262a3ae commit abdc9eb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/update-grype-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@ jobs:
if: github.repository == 'anchore/scan-action'
steps:
- uses: actions/checkout@v3
- run: |
LATEST_VERSION=$(curl "https://api.github.com/repos/anchore/grype/releases/latest" 2>/dev/null | jq -r '.tag_name')
- name: Get latest Grype version
id: latest-version
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
LATEST_VERSION=$(gh release view --json name -q '.name' -R anchore/grype)
echo "exports.GRYPE_VERSION = \"$LATEST_VERSION\";" > GrypeVersion.js
# install husky hooks and dependencies:
npm install
npm run build
# export the version for use with create-pull-request:
echo "LATEST_VERSION=$LATEST_VERSION" >> $GITHUB_OUTPUT
id: latest-version
- uses: tibdex/github-app-token@v1
id: generate-token
with:
Expand Down

0 comments on commit abdc9eb

Please sign in to comment.