diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index feaf3c0..27ea117 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -190,7 +190,7 @@ jobs: run: make -j build/image/envbox - name: Run Trivy vulnerability scanner - uses: aquasecurity/trivy-action@8bd2f9fbda2109502356ff8a6a89da55b1ead252 + uses: aquasecurity/trivy-action@0.29.0 with: image-ref: envbox:latest format: sarif diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d73a466..adb1d2e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -124,3 +124,11 @@ jobs: run: | git tag -a ${{ github.event.inputs.version }} -m ${{ github.event.inputs.version }} git push --tags + - name: Create Release + run: | + version=${{ github.event.inputs.version }} + if [[ $version == *-rc* ]]; then + gh release create "$version" -t "$version" --generate-notes --prerelease --latest=false --verify-tag + else + gh release create $version -t $version --generate-notes --verify-tag + fi