Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 36 additions & 36 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ name: "Security - CodeQL"

on:
push:
branches: [development, main, staging]
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [development]
branches: [main]
schedule:
- cron: '0 5 * * 5'
- cron: "0 5 * * 5"

jobs:
analyze:
Expand All @@ -24,40 +24,40 @@ jobs:
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['csharp']
language: ["csharp"]
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
- name: Load dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

- run: |
cd Cite.Api
dotnet build -c Release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Checkout repository
uses: actions/checkout@v5
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
- name: Load dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: "10.0.x"

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

- run: |
cd Cite.Api
dotnet build -c Release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
34 changes: 34 additions & 0 deletions CITE.Api.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cite.Api", "Cite.Api\Cite.Api.csproj", "{ADD5ADE9-0369-480B-825C-19E5FC5081F7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cite.Api.Migrations.PostgreSQL", "Cite.Api.Migrations.PostgreSQL\Cite.Api.Migrations.PostgreSQL.csproj", "{94A7F5B1-E6D5-465C-B07F-2573ACCD0236}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cite.Api.Data", "Cite.Api.Data\Cite.Api.Data.csproj", "{FA9D19BE-32D2-405D-A3A3-0A9061BC0DE5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cite.Api.Client", "Cite.Api.Client\Cite.Api.Client.csproj", "{3B98E14E-EC52-451C-8C38-7B740BAB205C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{ADD5ADE9-0369-480B-825C-19E5FC5081F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ADD5ADE9-0369-480B-825C-19E5FC5081F7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ADD5ADE9-0369-480B-825C-19E5FC5081F7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ADD5ADE9-0369-480B-825C-19E5FC5081F7}.Release|Any CPU.Build.0 = Release|Any CPU
{94A7F5B1-E6D5-465C-B07F-2573ACCD0236}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{94A7F5B1-E6D5-465C-B07F-2573ACCD0236}.Debug|Any CPU.Build.0 = Debug|Any CPU
{94A7F5B1-E6D5-465C-B07F-2573ACCD0236}.Release|Any CPU.ActiveCfg = Release|Any CPU
{94A7F5B1-E6D5-465C-B07F-2573ACCD0236}.Release|Any CPU.Build.0 = Release|Any CPU
{FA9D19BE-32D2-405D-A3A3-0A9061BC0DE5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FA9D19BE-32D2-405D-A3A3-0A9061BC0DE5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FA9D19BE-32D2-405D-A3A3-0A9061BC0DE5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FA9D19BE-32D2-405D-A3A3-0A9061BC0DE5}.Release|Any CPU.Build.0 = Release|Any CPU
{3B98E14E-EC52-451C-8C38-7B740BAB205C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3B98E14E-EC52-451C-8C38-7B740BAB205C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3B98E14E-EC52-451C-8C38-7B740BAB205C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3B98E14E-EC52-451C-8C38-7B740BAB205C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion Cite.Api.Client/Cite.Api.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Text.Json" Version="8.0.5" />
<PackageReference Include="System.Text.Json" Version="10.0.0" />
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
</ItemGroup>

Expand Down
5 changes: 3 additions & 2 deletions Cite.Api.Data/Cite.Api.Data.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
<ProjectGuid>{FA9D19BE-32D2-405D-A3A3-0A9061BC0DE5}</ProjectGuid>
<LangVersion>latest</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.8" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.0-rc.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
<ProjectGuid>{94A7F5B1-E6D5-465C-B07F-2573ACCD0236}</ProjectGuid>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.8" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.0-rc.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Cite.Api.Data\Cite.Api.Data.csproj" />
Expand Down
Loading
Loading