Skip to content

Commit

Permalink
Moved env to avoid script injection and added comment about setting s…
Browse files Browse the repository at this point in the history
…ecrets
  • Loading branch information
sreeram-venkitesh committed Dec 27, 2023
1 parent c43f8b1 commit a512551
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/openvex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,19 @@ on:
jobs:
vexctl:
runs-on: ubuntu-latest
env:
TAG: ${{ github.ref_name }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set tag name
shell: bash
run: |
echo "TAG=${{ github.ref_name }}" >> "$GITHUB_ENV"
- uses: openvex/generate-vex@31b415924ea0d72ed5f2640f1dee59dea6c2770b
name: Run vexctl
with:
product: pkg:generic/karpenter@${{ env.TAG }}
file: /tmp/karpenter.vex.json
- name: Upload openvex data
env:
# Secrets for the workflow can be added at https://github.com/kubernetes-sigs/karpenter/settings/secrets/actions
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ env.TAG }} /tmp/karpenter.vex.json

0 comments on commit a512551

Please sign in to comment.