forked from openshift/etcd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openshift#207 from tjungblu/rebase_4.12_3.5.9
OCPBUGS-15860: [4.12] Rebase openshift/etcd to 3.5.9
- Loading branch information
Showing
181 changed files
with
4,512 additions
and
1,728 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Go version setup | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
goversion: | ||
value: ${{ jobs.version.outputs.goversion }} | ||
|
||
jobs: | ||
version: | ||
name: Set Go version variable for all the workflows | ||
runs-on: ubuntu-latest | ||
outputs: | ||
goversion: ${{ steps.goversion.outputs.goversion }} | ||
steps: | ||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | ||
- id: goversion | ||
run: | | ||
GO_VERSION=$(cat .go-version) | ||
echo "Go Version: $GO_VERSION" | ||
echo "goversion=$GO_VERSION" >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
name: Release | ||
on: [push, pull_request] | ||
jobs: | ||
goversion: | ||
uses: ./.github/workflows/go-version.yaml | ||
main: | ||
runs-on: ubuntu-latest | ||
needs: goversion | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.16.15" | ||
- run: | | ||
go-version: ${{ needs.goversion.outputs.goversion }} | ||
- name: release | ||
run: | | ||
set -euo pipefail | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Action" | ||
gpg --batch --gen-key <<EOF | ||
|
@@ -21,4 +27,7 @@ jobs: | |
Name-Email: [email protected] | ||
Expire-Date: 0 | ||
EOF | ||
DRY_RUN=true BRANCH=release-3.5 ./scripts/release --no-upload --no-docker-push 3.5.99 | ||
DRY_RUN=true ./scripts/release --no-upload --no-docker-push --in-place 3.5.99 | ||
- name: test-image | ||
run: | | ||
VERSION=3.5.99 ./scripts/test_images.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Trivy Nightly Scan | ||
on: | ||
schedule: | ||
- cron: '0 2 * * *' # run at 2 AM UTC | ||
|
||
permissions: read-all | ||
jobs: | ||
nightly-scan: | ||
name: Trivy Scan nightly | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# maintain the versions of etcd that need to be actively | ||
# security scanned | ||
versions: [v3.5.6] | ||
permissions: | ||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 | ||
with: | ||
ref: release-3.5 | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/trivy-action@9ab158e8597f3b310480b9a69402b419bc03dbd5 # master | ||
with: | ||
image-ref: 'gcr.io/etcd-development/etcd:${{ matrix.versions }}' | ||
severity: 'CRITICAL,HIGH' | ||
format: 'template' | ||
template: '@/contrib/sarif.tpl' | ||
output: 'trivy-results-3-5.sarif' | ||
|
||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@a669cc5936cc5e1b6a362ec1ff9e410dc570d190 # v2.1.36 | ||
with: | ||
sarif_file: 'trivy-results-3-5.sarif' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.19.9 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.