From 0ac4ecbbc4fb55a21b17e87af18dcd1ec368de46 Mon Sep 17 00:00:00 2001 From: David Benoit Date: Wed, 20 Sep 2023 12:59:19 -0400 Subject: [PATCH] enable mainline gating (#123) --- .github/workflows/gating.yml | 33 +++++++++++++++++++++++++++++++++ .github/workflows/test.yaml | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/gating.yml diff --git a/.github/workflows/gating.yml b/.github/workflows/gating.yml new file mode 100644 index 0000000000..83a1ada7b5 --- /dev/null +++ b/.github/workflows/gating.yml @@ -0,0 +1,33 @@ +name: "Test Pull Request" + +on: + pull_request: + branches: + - 'main' + - 'go1.*-fips-release' + - 'go1.*-openssl-fips' + +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions +permissions: + actions: none + checks: read + contents: none + deployments: none + id-token: none + issues: read + discussions: read + packages: none + pages: none + pull-requests: read + repository-projects: none + security-events: none + statuses: none + +jobs: + test_pr: + # Look up the images for each selected compose + name: "Test Pull Request" + uses: golang-fips/release/.github/workflows/test-ubi-centos.yml@main + with: + go_fips_ref: ${{ github.event.pull_request.head.sha }} + composes: "ubi7,ubi8,ubi9,c8s,c9s" diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2d9fc4f9c5..2390e00281 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -2,7 +2,7 @@ name: Build and test on: pull_request: branches: - - go1.18-openssl-fips +# - go1.18-openssl-fips env: GOROOT_BOOTSTRAP: "/" GOROOT_FINAL: "/usr/lib/golang"