Skip to content

Commit 6ebd9a9

Browse files
committed
Update other actions for env/path CVE fix
Signed-off-by: Phil Estes <[email protected]> (cherry picked from commit 159fb2e)
1 parent 4988995 commit 6ebd9a9

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ jobs:
2323
GOPATH: ${{ runner.workspace }}
2424
GO111MODULE: off
2525
with:
26-
path: ./src/github.com/containerd/containerd
26+
path: src/github.com/containerd/containerd
27+
28+
- name: Set env
29+
shell: bash
30+
run: |
31+
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
32+
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
2733
2834
#
2935
# Build
@@ -134,7 +140,13 @@ jobs:
134140
GOPATH: ${{ runner.workspace }}
135141
GO111MODULE: off
136142
with:
137-
path: ./src/github.com/containerd/containerd
143+
path: src/github.com/containerd/containerd
144+
145+
- name: Set env
146+
shell: bash
147+
run: |
148+
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
149+
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
138150
139151
- name: Build amd64
140152
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)