-
Notifications
You must be signed in to change notification settings - Fork 49
Add OWASP CSRFGuard metadata #372
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
Open
owasp-nest
wants to merge
1
commit into
master
Choose a base branch
from
nest/owasp-csrfguard-metadata
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
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,24 @@ | ||
| name: Validate OWASP entity metadata | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - '*.owasp.yaml' | ||
| push: | ||
| paths: | ||
| - '*.owasp.yaml' | ||
|
|
||
| concurrency: | ||
| cancel-in-progress: true | ||
| group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }} | ||
|
|
||
| jobs: | ||
| validate-metadata: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Validate metadata file | ||
| uses: owasp/nest-schema/.github/actions/validate@a733198b4a942eb12d3ee8629cd9e0d409b1b2b9 | ||
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,32 @@ | ||
| audience: | ||
| - breaker | ||
| - builder | ||
| leaders: | ||
| - name: Azzeddine RAMRAMI | ||
| email: [email protected] | ||
| github: aramrami | ||
| - name: Istvan Albert-Toth | ||
| email: [email protected] | ||
| - name: Sébastien Gioria | ||
| email: [email protected] | ||
| github: SPoint42 | ||
| level: 4 | ||
| license: | ||
| - BSD-3-Clause | ||
| name: OWASP CSRFGuard | ||
| pitch: OWASP CSRFGuard is a library that implements a variant of the synchronizer token pattern to mitigate the risk of Cross-Site Request Forgery (CSRF) | ||
| attacks. | ||
| repositories: | ||
| - name: www-project-csrfguard | ||
| url: https://github.com/OWASP/www-project-csrfguard | ||
| description: The aim of this project is to protect Java applications against CSRF attacks with the use of Synchronizer Tokens | ||
| - name: OWASP-CSRFGuard | ||
| url: https://github.com/aramrami/OWASP-CSRFGuard | ||
| description: OWASP CSRFGuard 3.1.0 | ||
| tags: | ||
| - csrfguard | ||
| - defenders | ||
| - breakers | ||
| - vulnerability-management | ||
| type: tool | ||
| website: https://owasp.org/www-project-csrfguard |
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 24 days ago
To fix this issue, you should add a
permissionsblock to the workflow that explicitly sets the permissions granted to theGITHUB_TOKEN. Since neither the checkout nor the validation step are expected to require write access, the minimal privilege required is likelycontents: read. You may add this block either at the top level (applies to all jobs) or under thevalidate-metadatajob specifically. The best approach is to add it as a top-level key just below the workflowname, which will make the permission restriction explicit and protect against permission creep in future jobs. No new methods or imports are required—just a change to the YAML configuration file at the top level.