PATCH: CVE fix - Upgrade golang.org/x/net from v0.20.0 to 0.33.0 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will handle the release process | |
name: ODH Release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Tag to be used for release, i.e.: v0.0.1-odh-1' | |
required: true | |
push: | |
tags: | |
- '*' | |
jobs: | |
release-odh: | |
runs-on: ubuntu-latest | |
# Permission required to create a release | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: './go.mod' | |
- name: Verify that release doesn't exist yet | |
shell: bash {0} | |
run: | | |
gh release view ${{ github.event.inputs.version }} | |
status=$? | |
if [[ $status -eq 0 ]]; then | |
echo "Release ${{ github.event.inputs.version }} already exists." | |
exit 1 | |
fi | |
env: | |
GITHUB_TOKEN: ${{ github.TOKEN }} | |
- name: Creates a release in GitHub | |
run: | | |
gh release create ${{ github.event.inputs.version }} --target ${{ github.ref }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }} | |
shell: bash |