For the book updates and community contributions


Figure 4: No results to the initial scan.  Customize CodeQL settings



Download 3,57 Mb.
Pdf ko'rish
bet43/49
Sana21.08.2022
Hajmi3,57 Mb.
#847402
1   ...   39   40   41   42   43   44   45   46   ...   49
Bog'liq
DevOps-for-ASP.NET-Core-Developers

Figure 4:
No results to the initial scan. 
Customize CodeQL settings 
The CodeQL scan isn’t reporting any security issues. That’s expected with this basic sample. CodeQL 
can also scan for 
quality
issues. The current workflow is using the default security-extended suite. You 
can add quality scanning in by adding a configuration file to customize the scanning suites. In this 
step, you’ll configure CodeQL to use the security
-and-quality suites. 
INFORMATION
For other CodeQL configuration options, see 
Configuring CodeQL code scanning in 
your CI system

1.
Navigate to the 
.github
folder in the 
Code
tab and select 
Add File



71 
CHAPTER 3 | Continuous integration and deployment with Azure DevOps 
Figure 5:
Create a new file. 
2.
Enter 
codeql/codeql-config.yml
as the name. This creates the file in a folder. Paste in the 
following code: 
name:
"Security and Quality" 
queries:
- uses:
security-and-quality 
Figure 6:
Create the CodeQL configuration file. 
3.
Select 
Commit to main
at bottom of the editor to commit the file. 
4.
Edit the CodeQL workflow to use the new configuration file. Navigate to 
.github/workflows/codeql-analysis.yml
and select the pencil icon. Add a new property to the with 
section as shown below: 
- name: 
Initialize CodeQL 
uses: 
github/codeql-action/init@v1 
with: 
languages: 
${{ matrix.language }} 
config-file: 
./.github/codeql/codeql-config.yml 
# <-- add this line
5.
Select 
Start Commit
and commit to the main branch. 

Download 3,57 Mb.

Do'stlaringiz bilan baham:
1   ...   39   40   41   42   43   44   45   46   ...   49




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish