-
Notifications
You must be signed in to change notification settings - Fork 120
Plugin version v4.7.4 release #2202
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
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
df366ab
Remove handle_rest_pre_dispatch function call if godam plugin is active
fc8effa
Merge pull request #2179 from rtCamp/fix/handle_rest_pre_dispatch
KMchaudhary 0fbf1a5
Conditionally allow file extensions when uploading through gallery
rohitmathur-7 89327c3
Add extensions for document
rohitmathur-7 e8200d5
Merge pull request #2181 from rtCamp/fix/upload-type
rohitmathur-7 ad0d17c
Fixed typo on readme.txt
OpuRockey 8f5c96f
Merge pull request #2182 from rtCamp/fix/readme-typo
OpuRockey 72e7e89
Add PHPCS on PULL request workflow
0309533
Merge pull request #2184 from rtCamp/workflow/phpcs-on-pull
KMchaudhary d867642
Add new file extensions
rohitmathur-7 299204d
Merge pull request #2197 from rtCamp/featured/add-new-media-formats-d…
rohitmathur-7 ab382f3
Fix/plugin check security (#2183)
KMchaudhary 13fcd56
Version update v4.7.4 (#2201)
KMchaudhary 381b3d3
Typos
gagan0123 6adf72f
Remove mxf, vob, and mts file format support, and add m4v file format…
KMchaudhary ddbe344
Update changelog and generate pot file for v4.7.4 (#2205)
KMchaudhary File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| on: pull_request | ||
| name: Inspections | ||
| jobs: | ||
| runPHPCSInspection: | ||
| name: Run PHPCS inspection | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
| - name: Run PHPCS inspection | ||
| uses: rtCamp/action-phpcs-code-review@master | ||
| env: | ||
| SKIP_FOLDERS: "tests,.github,lib,node_modules,vendor" | ||
| GH_BOT_TOKEN: ${{ secrets.RTBOT_TOKEN }} | ||
| PHPCS_SNIFFS_EXCLUDE: "WordPress.Files.FileName" | ||
| with: | ||
| args: WordPress,WordPress-Core,WordPress-Docs | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 3 months ago
To fix the issue, the workflow file (
.github/workflows/phpcs_on_pull_request.yml) should be edited to include apermissions:block. According to recommended practice, this block can be set at the workflow root (applies to all jobs by default, unless jobs override it), or at the individual job level. Since the job appears to only need to read repository contents (for code checkout and inspection), settingcontents: readmay be sufficient. If the inspection action posts comments or reviews to pull requests, thenpull-requests: writeshould also be added. The best method is to add thepermissions:block directly beneathname:at the root of the YAML file, above thejobs:block.No additional methods, libraries, or dependencies are needed; only the YAML key should be added.