Skip to content

Commit

Permalink
Use get-latest action to avoid issues with git after CVE-2022-24765 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 authored May 4, 2022
1 parent 2543953 commit 822f76c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,12 @@ jobs:

- name: Checkout
uses: actions/checkout@v3

- uses: actions-ecosystem/action-get-latest-tag@v1
id: latest-tag
with:
fetch-depth: 0
semver_only: true
initial_version: 0.0.1

- name: Setup Node
uses: actions/setup-node@v3
Expand All @@ -330,7 +334,7 @@ jobs:

- name: Set version
run: |
VERSION=$(./hack/get_version_from_git.sh)
VERSION=${{ steps.latest-tag.outputs.tag }}
sed -i 's~%%VERSION%%~'"${VERSION}"'~' packaging/suse/Dockerfile
- name: Configure OSC
Expand Down

0 comments on commit 822f76c

Please sign in to comment.