Skip to content

Commit 29011b0

Browse files
stuggiclaude
andcommitted
Remove tj-actions/branch-names from upgrade catalog workflow
Replace tj-actions/branch-names with github.ref_name which provides the branch name natively without a third-party action. The tj-actions GitHub namespace was compromised in March 2025 (CVE-2025-30066) and using actions from that namespace is no longer recommended. Pass the value via env: to avoid shell interpolation of untrusted input in run: blocks. Jira: OSPRH-31981 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
1 parent 51d623c commit 29011b0

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/catalog-openstack-operator-upgrades.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,10 @@ jobs:
3737
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3838
with:
3939
path: ./openstack-operator
40-
- name: Get branch name
41-
id: branch-name
42-
uses: tj-actions/branch-names@5250492686b253f06fa55861556d1027b067aeb5 # v9
4340
- name: Set latest tag for non main branch
44-
if: "${{ steps.branch-name.outputs.current_branch != 'main' }}"
41+
if: "${{ github.ref_name != 'main' }}"
4542
run: |
46-
echo "latesttag=${{ steps.branch-name.outputs.current_branch }}-latest" >> $GITHUB_ENV
43+
echo "latesttag=${{ github.ref_name }}-latest" >> $GITHUB_ENV
4744
- name: Install opm
4845
uses: redhat-actions/openshift-tools-installer@144527c7d98999f2652264c048c7a9bd103f8a82 # v1
4946
with:

0 commit comments

Comments
 (0)