Skip to content

Add minimal prow-github-actions setup - #1652

Open
Taahir Ahmed (ahmedtd) wants to merge 1 commit into
agent-substrate:mainfrom
ahmedtd:prow
Open

Taahir Ahmed (ahmedtd) wants to merge 1 commit into
agent-substrate:mainfrom
ahmedtd:prow

Conversation

@ahmedtd

@ahmedtd Taahir Ahmed (ahmedtd) commented Sep 15, 2026 •

Copy link
Copy Markdown
Collaborator

DO_NOT_MERGE until we figure out a good way forward with Zizmor flagging pull_request_target.

Add a minimal prow-github-actions setup.

It should support labeling, as well as automatic PR submission. This will be pretty janky and slow until we have

I believe the automatic merging setup will be secure, since without OWNERS files, only org / repo members should be able to /lgtm or /approve

@BenTheElder

Copy link
Copy Markdown
Collaborator

We could consider using the github merge queues for merge, but I think we really want the ability to /retest.

I only see zizmor failing on the unpinned action digests?

@EItanya

Copy link
Copy Markdown
Collaborator

We could consider using the github merge queues for merge

FWIW I've really liked this in kagent so far, but I agree that not being able to re-run is a seriously terrible UX. GH has no answer to that?

@swiftdiaries

Copy link
Copy Markdown
Contributor

Heavy +1, being able to do /retest and /ok-to-test is something that'd be really, really helpful

uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
fetch-depth: 0
uses: actions/checkout@v3

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want something like this:

actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
uses: actions/setup-go@v5

@stshrive Steven Shriver (stshrive) Sep 16, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0

# limitations under the License.

# Adapted from https://github.com/cncf/prow-github-actions/blob/main/templates/workflow-templates/prow.yml

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing something like this:

permissions:
  contents: read
  packages: read
  pull-requests: write
  issues: write
  checks: write
  statuses: write

Not sure these are the optimal configurations. Consider reviewing these for the needs here.

@BenTheElder

Copy link
Copy Markdown
Collaborator

FWIW I've really liked this in kagent so far, but I agree that not being able to re-run is a seriously terrible UX. GH has no answer to that?

Grant write access :(

Obviously we will have more people with that over time but ... it's an extremely broad permission. A lot of contributors should ideally have permission to launch / rerun tests without having permission to merge yet ...

@BenTheElder

Copy link
Copy Markdown
Collaborator

Heavy +1, being able to do /retest and /ok-to-test is something that'd be really, really helpful

To be clear: I don't think this action supports that yet.

@bowei Bowei Du (bowei) added kind/feature An enhancement / feature request or implementation area/dev-infra labels Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/dev-infra kind/feature An enhancement / feature request or implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants