Skip to content

Commit 0e11bbf

Browse files
authored
Merge pull request #6973 from dcampbell24/zizmor-fix
Put DEFAULT_BRANCH into an env variable.
2 parents 3620e08 + 67360ba commit 0e11bbf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/GnuTests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ concurrency:
2323
group: ${{ github.workflow }}-${{ github.ref }}
2424
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
2525

26+
env:
27+
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
28+
2629
jobs:
2730
gnu:
2831
permissions:
@@ -45,9 +48,9 @@ jobs:
4548
path_reference="reference"
4649
outputs path_GNU path_GNU_tests path_reference path_UUTILS
4750
#
48-
repo_default_branch="${{ github.event.repository.default_branch }}"
51+
repo_default_branch="$DEFAULT_BRANCH"
4952
repo_GNU_ref="v9.5"
50-
repo_reference_branch="${{ github.event.repository.default_branch }}"
53+
repo_reference_branch="$DEFAULT_BRANCH"
5154
outputs repo_default_branch repo_GNU_ref repo_reference_branch
5255
#
5356
SUITE_LOG_FILE="${path_GNU_tests}/test-suite.log"

0 commit comments

Comments
 (0)