-
Notifications
You must be signed in to change notification settings - Fork 54
PDP-1182 SECCMP-1797: Add top-level permissions to restrict default token #1070
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,17 @@ | ||
| name: PR Workflow | ||
|
|
||
| on: | ||
| # Using pull_request_target instead of pull_request to handle PRs from forks | ||
| pull_request_target: | ||
| types: [opened, edited, reopened, synchronize] | ||
| # No branch filtering - will run on all PRs | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| jira-pr-check: | ||
| name: 🏷️ Validate JIRA ticket ID | ||
| # Use the reusable workflow from the central repository | ||
| uses: marklogic/pr-workflows/.github/workflows/jira-id-check.yml@main | ||
|
||
| with: | ||
| # Pass the PR title from the event context | ||
| pr-title: ${{ github.event.pull_request.title }} | ||
| copyright-validation: | ||
| name: © Validate Copyright Headers | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rationale for using
pull_request_target(especially for fork PRs) was removed. Since this event has important security implications, consider keeping a brief comment explaining whypull_request_targetis required here and what safeguards are assumed (e.g., no checkout of untrusted code).