forked from open-policy-agent/gatekeeper
-
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.
- Add OWNERS file - Enable CGO explicitly - Set TLS minimum version to 1.2 - Bump to Go 1.21 - Update to multi-arch Dockerfile - Workflow to build/push to quay.io - Workflow for Sonarcloud scanning - Address vulnerability scans Signed-off-by: Dale Haiducek <[email protected]>
- Loading branch information
Showing
131 changed files
with
5,144 additions
and
1,444 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: build and push to quay | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' # tags matching v*, i.e. v0.0.1, v1.0.0-rc.0 | ||
|
||
jobs: | ||
build: | ||
name: Image build and push | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: docker/login-action@v2 | ||
with: | ||
registry: quay.io | ||
username: ${{ secrets.QUAY_USER }} | ||
password: ${{ secrets.QUAY_PASSWORD }} | ||
|
||
- name: build and push | ||
run: | | ||
REPOSITORY="quay.io/gatekeeper/gatekeeper" \ | ||
PLATFORM="linux/amd64,linux/arm64,linux/arm/v8" \ | ||
OUTPUT_TYPE=type=registry GENERATE_ATTESTATIONS=true \ | ||
make docker-buildx-release | ||
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,27 @@ | ||
name: GoSec scan | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- release-[0-9]+.[0-9]+ | ||
pull_request: | ||
branches: | ||
- master | ||
- release-[0-9]+.[0-9]+ | ||
|
||
jobs: | ||
gosec: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Gatekeeper | ||
uses: actions/checkout@v4 | ||
- name: Run Gosec Security Scanner | ||
uses: securego/[email protected] | ||
with: | ||
args: -no-fail -fmt sonarqube -out gosec.json -stdout -exclude-dir=.go -exclude-dir=test ./... | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: artifacts | ||
path: gosec.json |
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,14 @@ | ||
name: Sonarcloud scan | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- GoSec scan | ||
types: | ||
- completed | ||
|
||
jobs: | ||
sonarcloud: | ||
uses: stolostron/governance-policy-framework/.github/workflows/sonarcloud.yml@main | ||
secrets: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
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,12 @@ | ||
approvers: | ||
- dhaiducek | ||
- gparvin | ||
- JustinKuli | ||
- mprahl | ||
- yiraeChristineKim | ||
reviewers: | ||
- dhaiducek | ||
- gparvin | ||
- JustinKuli | ||
- mprahl | ||
- yiraeChristineKim |
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.