Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc7dbb20

Browse files
authored
Merge pull request#2857 from github/nickfyson/address-vulns
move use of input variables into env vars
2 parentsd26c46a +9a45cd8 commitc7dbb20

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

‎.github/actions/prepare-test/action.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,27 @@ runs:
2929
-id:get-url
3030
name:Determine URL
3131
shell:bash
32+
env:
33+
VERSION:${{ inputs.version }}
34+
USE_ALL_PLATFORM_BUNDLE:${{ inputs.use-all-platform-bundle }}
3235
run:|
3336
set -e # Fail this Action if `gh release list` fails.
3437
35-
if [[${{ inputs.version }} == "linked" ]]; then
38+
if [["$VERSION" == "linked" ]]; then
3639
echo "tools-url=linked" >> "$GITHUB_OUTPUT"
3740
exit 0
38-
elif [[${{ inputs.version }} == "default" ]]; then
41+
elif [["$VERSION" == "default" ]]; then
3942
echo "tools-url=" >> "$GITHUB_OUTPUT"
4043
exit 0
4144
fi
4245
43-
if [[${{ inputs.version }} == "nightly-latest" && "$RUNNER_OS" != "Windows" ]]; then
46+
if [["$VERSION" == "nightly-latest" && "$RUNNER_OS" != "Windows" ]]; then
4447
extension="tar.zst"
4548
else
4649
extension="tar.gz"
4750
fi
4851
49-
if [[${{ inputs.use-all-platform-bundle }} == "true" ]]; then
52+
if [["$USE_ALL_PLATFORM_BUNDLE" == "true" ]]; then
5053
artifact_name="codeql-bundle.$extension"
5154
elif [[ "$RUNNER_OS" == "Linux" ]]; then
5255
artifact_name="codeql-bundle-linux64.$extension"
@@ -59,14 +62,14 @@ runs:
5962
exit 1
6063
fi
6164
62-
if [[${{ inputs.version }} == "nightly-latest" ]]; then
65+
if [["$VERSION" == "nightly-latest" ]]; then
6366
tag=`gh release list --repo dsp-testing/codeql-cli-nightlies -L 1 | cut -f 3`
6467
echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/$tag/$artifact_name" >> $GITHUB_OUTPUT
65-
elif [[${{ inputs.version }} == *"nightly"* ]]; then
66-
version=`echo${{ inputs.version }} | sed -e 's/^.*\-//'`
68+
elif [["$VERSION" == *"nightly"* ]]; then
69+
version=`echo"$VERSION" | sed -e 's/^.*\-//'`
6770
echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-$version/$artifact_name" >> $GITHUB_OUTPUT
68-
elif [[${{ inputs.version }} == *"stable"* ]]; then
69-
version=`echo${{ inputs.version }} | sed -e 's/^.*\-//'`
71+
elif [["$VERSION" == *"stable"* ]]; then
72+
version=`echo"$VERSION" | sed -e 's/^.*\-//'`
7073
echo "tools-url=https://github.com/github/codeql-action/releases/download/codeql-bundle-$version/$artifact_name" >> $GITHUB_OUTPUT
7174
else
7275
echo "::error::Unrecognized version specified!"

‎.github/actions/release-branches/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ runs:
1818
using:"composite"
1919
steps:
2020
-id:branches
21+
env:
22+
MAJOR_VERSION:${{ inputs.major_version }}
23+
LATEST_TAG:${{ inputs.latest_tag }}
2124
run:|
2225
python ${{ github.action_path }}/release-branches.py \
23-
--major-version${{ inputs.major_version }} \
24-
--latest-tag${{ inputs.latest_tag }}
26+
--major-version"$MAJOR_VERSION" \
27+
--latest-tag"$LATEST_TAG"
2528
shell:bash

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp