mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-10-18 04:41:19 +02:00
ci: introducing cncf/prow-github-actions (#3536)
Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
name: Bug report
|
||||
description: Bug descriptions or unexpected behaviour
|
||||
title: "[Bug]: <Short description>"
|
||||
labels: ["bug","help wanted"]
|
||||
labels: ["kind/bug"]
|
||||
body:
|
||||
- type: input
|
||||
attributes:
|
||||
@@ -17,19 +17,20 @@ body:
|
||||
- adfs
|
||||
- azure
|
||||
- bitbucket
|
||||
- cidaas
|
||||
- digitalocean
|
||||
- entra-id
|
||||
- facebook
|
||||
- gitea
|
||||
- github
|
||||
- gitlab
|
||||
- google
|
||||
- keycloak
|
||||
- keycloak-oidc
|
||||
- linkedin
|
||||
- logingov
|
||||
- ms-entra-id
|
||||
- nextcloud
|
||||
- oidc
|
||||
- srht
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
name: Feature request
|
||||
description: Feature requests or proposals related to the overall project or specific providers
|
||||
title: "[Feature]: <Short description>"
|
||||
labels: ["enhancement"]
|
||||
labels: ["kind/enhancement"]
|
||||
body:
|
||||
- type: textarea
|
||||
attributes:
|
||||
@@ -33,19 +33,20 @@ body:
|
||||
- adfs
|
||||
- azure
|
||||
- bitbucket
|
||||
- cidaas
|
||||
- digitalocean
|
||||
- entra-id
|
||||
- facebook
|
||||
- gitea
|
||||
- github
|
||||
- gitlab
|
||||
- google
|
||||
- keycloak
|
||||
- keycloak-oidc
|
||||
- linkedin
|
||||
- logingov
|
||||
- ms-entra-id
|
||||
- nextcloud
|
||||
- oidc
|
||||
- srht
|
||||
validations:
|
||||
required: false
|
||||
|
||||
|
||||
+138
-18
@@ -1,35 +1,155 @@
|
||||
go:
|
||||
area/core:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- '**/*.go'
|
||||
- '*.go'
|
||||
- 'pkg/app/**'
|
||||
- 'pkg/encryption/**'
|
||||
- 'pkg/header/**'
|
||||
- 'pkg/ip/**'
|
||||
- 'pkg/logger/**'
|
||||
- 'pkg/middleware/**'
|
||||
- 'pkg/requests/**'
|
||||
- 'pkg/util/**'
|
||||
- 'pkg/version/**'
|
||||
- 'pkg/watcher/**'
|
||||
|
||||
docs:
|
||||
area/authentication:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'pkg/authentication/**'
|
||||
|
||||
area/session:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'pkg/sessions/**'
|
||||
|
||||
area/cookies:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'pkg/cookies/**'
|
||||
|
||||
area/upstream:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'pkg/upstream/**'
|
||||
|
||||
area/proxy:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'pkg/proxyhttp/**'
|
||||
|
||||
area/api:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'pkg/apis/**'
|
||||
|
||||
area/configuration:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'pkg/validation/**'
|
||||
- 'contrib/**'
|
||||
|
||||
area/provider:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'providers/**'
|
||||
- 'pkg/providers/**'
|
||||
|
||||
area/documentation:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'docs/**'
|
||||
- '**/*.md'
|
||||
|
||||
changelog:
|
||||
area/ci:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'CHAGELOG.md'
|
||||
- '.github/**'
|
||||
- '.devcontainer/**'
|
||||
|
||||
tests:
|
||||
area/testing:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- '**/*_test.go'
|
||||
- 'testdata/**'
|
||||
|
||||
provider:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'providers/**/*'
|
||||
|
||||
dependencies:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'go.mod'
|
||||
- 'go.sum'
|
||||
|
||||
docker:
|
||||
area/docker:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- '**/Dockerfile'
|
||||
- 'contrib/local-environment/**'
|
||||
|
||||
area/release:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- '.github/workflows/create-release.yml'
|
||||
- '.github/workflows/nightly.yml'
|
||||
- '.github/workflows/publish-release.yml'
|
||||
|
||||
provider/adfs:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/adfs.*'
|
||||
|
||||
provider/azure:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/azure.*'
|
||||
|
||||
provider/bitbucket:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/bitbucket.*'
|
||||
|
||||
provider/cidaas:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/cidaas.*'
|
||||
|
||||
provider/digitalocean:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/digitalocean.*'
|
||||
|
||||
provider/facebook:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/facebook.*'
|
||||
|
||||
provider/gitea:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/gitea.*'
|
||||
|
||||
provider/github:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/github.*'
|
||||
|
||||
provider/gitlab:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/gitlab.*'
|
||||
|
||||
provider/google:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/google.*'
|
||||
|
||||
provider/keycloak:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/keycloak*.*'
|
||||
|
||||
provider/linkedin:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/linkedin.*'
|
||||
|
||||
provider/logingov:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/logingov.*'
|
||||
|
||||
provider/ms-entra-id:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/ms_entra_id.*'
|
||||
|
||||
provider/nextcloud:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/nextcloud.*'
|
||||
|
||||
provider/oidc:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/oidc.*'
|
||||
|
||||
provider/srht:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'providers/srht.*'
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
labels:
|
||||
area:
|
||||
- core
|
||||
- authentication
|
||||
- authorization
|
||||
- session
|
||||
- cookies
|
||||
- upstream
|
||||
- proxy
|
||||
- provider
|
||||
- configuration
|
||||
- api
|
||||
- documentation
|
||||
- ci
|
||||
- testing
|
||||
- docker
|
||||
- release
|
||||
- security
|
||||
kind:
|
||||
- bug
|
||||
- enhancement
|
||||
- documentation
|
||||
- refactor
|
||||
- test
|
||||
- breaking-change
|
||||
provider:
|
||||
- adfs
|
||||
- azure
|
||||
- bitbucket
|
||||
- cidaas
|
||||
- digitalocean
|
||||
- facebook
|
||||
- gitea
|
||||
- github
|
||||
- gitlab
|
||||
- google
|
||||
- keycloak
|
||||
- linkedin
|
||||
- logingov
|
||||
- ms-entra-id
|
||||
- nextcloud
|
||||
- oidc
|
||||
- srht
|
||||
|
||||
require_matching_label:
|
||||
- regexp: ^kind/
|
||||
missing_label: needs-kind
|
||||
issues: true
|
||||
prs: true
|
||||
missing_comment: "Please add a kind label with /kind <value>."
|
||||
|
||||
tide:
|
||||
merge_on_events: false
|
||||
@@ -0,0 +1,20 @@
|
||||
name: Sync Prow Labels
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [master]
|
||||
paths: [.github/prow.yaml]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: oauth2-proxy/prow-github-actions@c5ba2c6994ab70e129b5d028ba885f02ba44db65 # main
|
||||
with:
|
||||
jobs: label-sync
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -0,0 +1,50 @@
|
||||
name: Prow
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
issues:
|
||||
types: [opened, reopened, labeled, unlabeled]
|
||||
pull_request_target:
|
||||
types: [opened, reopened, synchronize, ready_for_review, labeled, unlabeled]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
public-commands:
|
||||
if: github.event_name == 'issue_comment'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: oauth2-proxy/prow-github-actions@c5ba2c6994ab70e129b5d028ba885f02ba44db65 # main
|
||||
with:
|
||||
prow-commands: /assign /unassign /area /kind /provider /help
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
review-commands:
|
||||
if: github.event_name == 'issue_comment' && github.event.issue.pull_request != null
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: oauth2-proxy/prow-github-actions@c5ba2c6994ab70e129b5d028ba885f02ba44db65 # main
|
||||
with:
|
||||
prow-commands: /lgtm
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
issue-label-requirements:
|
||||
if: github.event_name == 'issues'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: oauth2-proxy/prow-github-actions@c5ba2c6994ab70e129b5d028ba885f02ba44db65 # main
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
pull-request-labels:
|
||||
if: github.event_name == 'pull_request_target'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: oauth2-proxy/prow-github-actions@c5ba2c6994ab70e129b5d028ba885f02ba44db65 # main
|
||||
with:
|
||||
jobs: lgtm
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -15,6 +15,8 @@ jobs:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
days-before-stale: 180
|
||||
days-before-close: 14
|
||||
stale-issue-label: lifecycle/stale
|
||||
stale-pr-label: lifecycle/stale
|
||||
stale-issue-message: 'This issue has been inactive for 180 days. If the issue is still relevant please comment to re-activate the issue. If no action is taken within 14 days, the issue will be marked closed.'
|
||||
stale-pr-message: 'This pull request has been inactive for 180 days. If the pull request is still relevant please comment to re-activate the pull request. If no action is taken within 14 days, the pull request will be marked closed.'
|
||||
exempt-issue-labels: bug,high-priority
|
||||
|
||||
Reference in New Issue
Block a user