go1.17.3 (released 2021-11-04) includes security fixes to the archive/zip and debug/macho packages, as well as bug fixes to the compiler, linker, runtime, the go command, the misc/wasm directory, and to the net/http and syscall packages. See the Go 1.17.3 milestone on our issue tracker for details. From the announcement e-mail: [security] Go 1.17.3 and Go 1.16.10 are released We have just released Go versions 1.17.3 and 1.16.10, minor point releases. These minor releases include two security fixes following the security policy: - archive/zip: don't panic on (*Reader).Open Reader.Open (the API implementing io/fs.FS introduced in Go 1.16) can be made to panic by an attacker providing either a crafted ZIP archive containing completely invalid names or an empty filename argument. Thank you to Colin Arnott, SiteHost and Noah Santschi-Cooney, Sourcegraph Code Intelligence Team for reporting this issue. This is CVE-2021-41772 and Go issue golang.org/issue/48085. - debug/macho: invalid dynamic symbol table command can cause panic Malformed binaries parsed using Open or OpenFat can cause a panic when calling ImportedSymbols, due to an out-of-bounds slice operation. Thanks to Burak Çarıkçı - Yunus Yıldırım (CT-Zer0 Crypttech) for reporting this issue. This is CVE-2021-41771 and Go issue golang.org/issue/48990. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
162 lines
4.0 KiB
YAML
162 lines
4.0 KiB
YAML
name: Nightly
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *' # Every day at midnight
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/nightly.yml'
|
|
|
|
jobs:
|
|
linux:
|
|
name: Linux
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: src/github.com/containerd/containerd
|
|
|
|
steps:
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '1.17.3'
|
|
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
path: src/github.com/containerd/containerd
|
|
|
|
- name: Set env
|
|
shell: bash
|
|
run: |
|
|
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
|
|
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
|
|
|
|
#
|
|
# Build
|
|
#
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo add-apt-repository "deb [arch=arm64,s390x,ppc64el] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc) main" || true
|
|
sudo add-apt-repository "deb [arch=arm64,s390x,ppc64el] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc)-updates main" || true
|
|
|
|
sudo dpkg --add-architecture arm64
|
|
sudo dpkg --add-architecture s390x
|
|
sudo dpkg --add-architecture ppc64el
|
|
|
|
sudo apt-get update || true
|
|
|
|
sudo apt-get install -y \
|
|
crossbuild-essential-arm64 \
|
|
crossbuild-essential-s390x \
|
|
crossbuild-essential-ppc64el \
|
|
libseccomp-dev:amd64 \
|
|
libseccomp-dev:arm64 \
|
|
libseccomp-dev:s390x \
|
|
libseccomp-dev:ppc64el \
|
|
libbtrfs-dev:amd64 \
|
|
libbtrfs-dev:arm64 \
|
|
libbtrfs-dev:s390x \
|
|
libbtrfs-dev:ppc64el
|
|
|
|
- name: Build amd64
|
|
env:
|
|
GOOS: linux
|
|
GOARCH: amd64
|
|
run: |
|
|
make binaries
|
|
mv bin bin_amd64
|
|
|
|
- name: Build arm64
|
|
env:
|
|
GOOS: linux
|
|
GOARCH: arm64
|
|
CC: aarch64-linux-gnu-gcc
|
|
CGO_ENABLED: 1
|
|
run: |
|
|
make binaries
|
|
mv bin bin_arm64
|
|
|
|
- name: Build s390x
|
|
env:
|
|
GOOS: linux
|
|
GOARCH: s390x
|
|
CGO_ENABLED: 1
|
|
CC: s390x-linux-gnu-gcc
|
|
run: |
|
|
make binaries
|
|
mv bin bin_s390x
|
|
|
|
- name: Build ppc64le
|
|
env:
|
|
GOOS: linux
|
|
GOARCH: ppc64le
|
|
CGO_ENABLED: 1
|
|
CC: powerpc64le-linux-gnu-gcc
|
|
run: |
|
|
make binaries
|
|
mv bin bin_ppc64le
|
|
|
|
#
|
|
# Upload
|
|
#
|
|
|
|
- name: Upload artifacts (linux_amd64)
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: linux_amd64
|
|
path: src/github.com/containerd/containerd/bin_amd64
|
|
|
|
- name: Upload artifacts (linux_arm64)
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: linux_arm64
|
|
path: src/github.com/containerd/containerd/bin_arm64
|
|
|
|
- name: Upload artifacts (linux_s390x)
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: linux_s390x
|
|
path: src/github.com/containerd/containerd/bin_s390x
|
|
|
|
- name: Upload artifacts (linux_ppc64le)
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: linux_ppc64le
|
|
path: src/github.com/containerd/containerd/bin_ppc64le
|
|
|
|
windows:
|
|
name: Windows
|
|
runs-on: windows-latest
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: src/github.com/containerd/containerd
|
|
|
|
steps:
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '1.17.3'
|
|
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
path: src/github.com/containerd/containerd
|
|
|
|
- name: Set env
|
|
shell: bash
|
|
run: |
|
|
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
|
|
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
|
|
|
|
- name: Build amd64
|
|
env:
|
|
GOOS: windows
|
|
GOARCH: amd64
|
|
run: |
|
|
make binaries
|
|
|
|
- name: Upload artifacts (windows_amd64)
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: windows_amd64
|
|
path: src/github.com/containerd/containerd/bin/
|