Skip to content
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

Updated actions/labeler version, labeler.yml format #9126

Merged
merged 2 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
59 changes: 41 additions & 18 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,62 @@
---

Check warning on line 1 in .github/labeler.yml

View check run for this annotation

DryRunSecurity / AI-powered Sensitive Files Check

Possible Sensitive File

Our AI-Powered Sensitive File checker believes it has discovered a sensitive file being modified in this PR. Extra care must be taken when modifying a file that is potentially security-sensitive. The following reason was provided: Contains configuration for labeler
docs:
- docs/**/*
- readme-docs/**/*
- changed-files:
- any-glob-to-any-file:
- docs/**/*
- readme-docs/**/*

docker:
- docker/**/*
- docker**
- Docker*
- changed-files:
- any-glob-to-any-file:
- docker/**/*
- docker**
- Docker*

helm:
- helm/defectdojo/*
- helm/defectdojo/**/*
- changed-files:
- any-glob-to-any-file:
- helm/defectdojo/*
- helm/defectdojo/**/*

"New Migration":
- dojo/db_migrations/*
- changed-files:
- any-glob-to-any-file:
- dojo/db_migrations/*

unittests:
- unittests/**/*
- changed-files:
- any-glob-to-any-file:
- unittests/**/*

integration_tests:
- tests/**/*
- changed-files:
- any-glob-to-any-file:
- tests/**/*

settings_changes:
- dojo/settings/settings.dist.py
- changed-files:
- any-glob-to-any-file:
- dojo/settings/settings.dist.py

apiv2:
- dojo/api_v2/**/*
- changed-files:
- any-glob-to-any-file:
- dojo/api_v2/**/*

ui:
- dojo/static/**/*
- dojo/templates/**/*
- dojo/templatetags/**/*
- changed-files:
- any-glob-to-any-file:
- dojo/static/**/*
- dojo/templates/**/*
- dojo/templatetags/**/*

parser:
- dojo/tools/**/*
- changed-files:
- any-glob-to-any-file:
- dojo/tools/**/*

localization:
- dojo/locale/*
- dojo/locale/**/*
- changed-files:
- any-glob-to-any-file:
- dojo/locale/*
- dojo/locale/**/*
9 changes: 6 additions & 3 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR Labeler

Check warning on line 1 in .github/workflows/pr-labeler.yml

View check run for this annotation

DryRunSecurity / AI-powered Sensitive Files Check

Possible Sensitive File

Our AI-Powered Sensitive File checker believes it has discovered a sensitive file being modified in this PR. Extra care must be taken when modifying a file that is potentially security-sensitive. The following reason was provided: Contains workflow for PR labeler

# run on pull_request_target because we need write access to the GItHub API
# don't run any code from PR here!
Expand All @@ -9,9 +9,12 @@

jobs:
labeler:
permissions:
contents: read
pull-requests: write
name: "Autolabeler"
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"