From 2a7037712c90f955c081e19a1dbad144af4cbfde Mon Sep 17 00:00:00 2001 From: Knative Automation Date: Mon, 23 Sep 2024 12:02:59 -0400 Subject: [PATCH] [main] Update actions (#3) Update actions Signed-off-by: Knative Automation --- .github/workflows/knative-go-build.yaml | 14 +++++++++++++ .github/workflows/knative-go-test.yaml | 19 ++++++++++++++++++ .github/workflows/knative-security.yaml | 17 ++++++++++++++++ .github/workflows/knative-stale.yaml | 14 +++++++++++++ .github/workflows/knative-style.yaml | 15 ++++++++++++++ .github/workflows/knative-verify.yaml | 26 +++++++++++++++++++++++++ 6 files changed, 105 insertions(+) create mode 100644 .github/workflows/knative-go-build.yaml create mode 100644 .github/workflows/knative-go-test.yaml create mode 100644 .github/workflows/knative-security.yaml create mode 100644 .github/workflows/knative-stale.yaml create mode 100644 .github/workflows/knative-style.yaml create mode 100644 .github/workflows/knative-verify.yaml diff --git a/.github/workflows/knative-go-build.yaml b/.github/workflows/knative-go-build.yaml new file mode 100644 index 00000000..10c3de1a --- /dev/null +++ b/.github/workflows/knative-go-build.yaml @@ -0,0 +1,14 @@ +# Copyright 2020 The Knative Authors. +# SPDX-License-Identifier: Apache-2.0 + +# This file is automagically synced here from github.com/knative-extensions/knobots + +name: Build + +on: + pull_request: + branches: [ 'main', 'release-*' ] + +jobs: + build: + uses: knative/actions/.github/workflows/reusable-go-build.yaml@main diff --git a/.github/workflows/knative-go-test.yaml b/.github/workflows/knative-go-test.yaml new file mode 100644 index 00000000..aa3ec66c --- /dev/null +++ b/.github/workflows/knative-go-test.yaml @@ -0,0 +1,19 @@ +# Copyright 2022 The Knative Authors. +# SPDX-License-Identifier: Apache-2.0 + +# This file is automagically synced here from github.com/knative-extensions/knobots + +name: Test + +on: + push: + branches: [ 'main', 'release-*' ] + + pull_request: + branches: [ 'main', 'release-*' ] + +jobs: + test: + uses: knative/actions/.github/workflows/reusable-go-test.yaml@main + secrets: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/knative-security.yaml b/.github/workflows/knative-security.yaml new file mode 100644 index 00000000..a6cd6813 --- /dev/null +++ b/.github/workflows/knative-security.yaml @@ -0,0 +1,17 @@ +# Copyright 2020 The Knative Authors. +# SPDX-License-Identifier: Apache-2.0 + +# This file is automagically synced here from github.com/knative-extensions/knobots + +name: 'Security' + +on: + push: + branches: [ 'main', 'release-*' ] + + pull_request: + branches: [ 'main', 'release-*' ] + +jobs: + analyze: + uses: knative/actions/.github/workflows/reusable-security.yaml@main diff --git a/.github/workflows/knative-stale.yaml b/.github/workflows/knative-stale.yaml new file mode 100644 index 00000000..2e25b9d9 --- /dev/null +++ b/.github/workflows/knative-stale.yaml @@ -0,0 +1,14 @@ +# Copyright 2020 The Knative Authors. +# SPDX-License-Identifier: Apache-2.0 + +# This file is automagically synced here from github.com/knative-extensions/knobots +name: 'Close stale' + +on: + schedule: + - cron: '0 1 * * *' + +jobs: + + stale: + uses: knative/actions/.github/workflows/reusable-stale.yaml@main diff --git a/.github/workflows/knative-style.yaml b/.github/workflows/knative-style.yaml new file mode 100644 index 00000000..55bb1537 --- /dev/null +++ b/.github/workflows/knative-style.yaml @@ -0,0 +1,15 @@ +# Copyright 2020 The Knative Authors. +# SPDX-License-Identifier: Apache-2.0 + +# This file is automagically synced here from github.com/knative-extensions/knobots + +name: Code Style + +on: + pull_request: + branches: [ 'main', 'release-*' ] + +jobs: + + style: + uses: knative/actions/.github/workflows/reusable-style.yaml@main diff --git a/.github/workflows/knative-verify.yaml b/.github/workflows/knative-verify.yaml new file mode 100644 index 00000000..e1a28c4f --- /dev/null +++ b/.github/workflows/knative-verify.yaml @@ -0,0 +1,26 @@ +# Copyright 2020 The Knative Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# This file is automagically synced here from github.com/knative-extensions/.github +# repo by knobots: https://github.com/knative-extensions/knobots and will be overwritten. + +name: Verify + +on: + pull_request: + branches: [ 'main', 'release-*' ] + +jobs: + verify: + uses: knative/actions/.github/workflows/reusable-verify-codegen.yaml@main