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 (red-hat-data-services#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 e6d84af
Showing 1 changed file with 5 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

0 comments on commit e6d84af

Please sign in to comment.