Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace pull request target #53

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/actions/verifier/action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
name: 'Verify KubeBuilder PRs'
description: 'Verify PRs for the KubeBuilder project repos & similar'
inputs:
github_token:
description: "the github_token provided by the actions runner"
required: true
github-token:
action-input:
input: github-token
is-default: false
permissions:
checks: write
checks-reason: to create and update checks #Checkout: https://github.com/kubernetes-sigs/kubebuilder-release-tools/blob/01981b8498d7b87658301e2a1b12c56b8c61067d/verify/pkg/action/plugin.go#L88
pull-requests: read
pull-requests-reason: to get PR title

runs:
using: docker
image: '../../../Dockerfile'
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: PR Verifier

on:
pull_request_target:
pull_request:
types: [opened, edited, reopened, synchronize]

permissions:
checks: write # Allow access to checks to write check runs.
checks-reason: to create and update checks #Checkout: https://github.com/kubernetes-sigs/kubebuilder-release-tools/blob/01981b8498d7b87658301e2a1b12c56b8c61067d/verify/pkg/action/plugin.go#L88
pull-requests: read
pull-requests-reason: to get PR title

jobs:
verify:
name: Verify PR contents
Expand Down