Skip to content

Commit

Permalink
(fix): Change on trigger event to pull_request_target in the "Check…
Browse files Browse the repository at this point in the history
… config and readme updates / Ensure generated files are included (pull_request)" action to fix "Resource not accessible by integration" error while running the action (opendatahub-io#1296)

Signed-off-by: AJAY JAGANATHAN <[email protected]>
Signed-off-by: Wen Zhou <[email protected]>
  • Loading branch information
AjayJagan authored and zdtsw committed Oct 16, 2024
1 parent f7d5537 commit 099f10c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/check-file-updates.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Check config and readme updates
on:
pull_request:
pull_request_target:
jobs:
file-updates:
permissions:
Expand All @@ -9,10 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: setup-go
uses: actions/setup/go@v4
with:
go-version-file> go.mod`
go-version-file: go.mod
- name: Generate files
id: generate-files
run: |
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# To re-generate a bundle for another specific version without changing the standard setup, you can:
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
#
VERSION ?= 2.12.0
# IMAGE_TAG_BASE defines the opendatahub.io namespace and part of the image name for remote images.
# This variable is used to construct full image tags for bundle and catalog images.
Expand Down
1 change: 1 addition & 0 deletions apis/features/v1/features_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Cluster
// +kubebuilder:subresource:status

type FeatureTracker struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down

0 comments on commit 099f10c

Please sign in to comment.