Skip to content

Commit 159fb2e

Browse files
committed
Update other actions for env/path CVE fix
Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
1 parent 340ab57 commit 159fb2e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/nightly.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
- name: Set env
2828
shell: bash
2929
run: |
30-
echo "::set-env name=GOPATH::${{ github.workspace }}"
31-
echo "::add-path::${{ github.workspace }}/bin"
30+
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
31+
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
3232
3333
#
3434
# Build
@@ -140,8 +140,8 @@ jobs:
140140
- name: Set env
141141
shell: bash
142142
run: |
143-
echo "::set-env name=GOPATH::${{ github.workspace }}"
144-
echo "::add-path::${{ github.workspace }}/bin"
143+
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
144+
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
145145
146146
- name: Build amd64
147147
env:

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ jobs:
7575
[[ "${MOS}" =~ "windows" ]] && {
7676
os=windows
7777
}
78-
echo "::set-env name=RELEASE_VER::${releasever}"
79-
echo "::set-env name=GOPATH::${{ github.workspace }}"
80-
echo "::set-env name=OS::${os}"
81-
echo "::add-path::${{ github.workspace }}/bin"
78+
echo "RELEASE_VER=${releasever}" >> $GITHUB_ENV
79+
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
80+
echo "OS=${os}" >> $GITHUB_ENV
81+
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
8282
8383
- name: Checkout containerd
8484
uses: actions/checkout@v2

0 commit comments

Comments
 (0)