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

30 implementering av oppslag for enhetsregisterroller er roller #57

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
faea210
Laget controller service for databrreg og endret mappe struktur
loguecow Jul 9, 2024
acbb9eb
removed unnecessary usings
loguecow Jul 9, 2024
736e0df
changes to codeql
loguecow Jul 9, 2024
28fdb91
changed codeql matrix languages
loguecow Jul 9, 2024
5c6aa2a
typesnode to 20 and codeql rollbac
loguecow Jul 9, 2024
6abf492
removed build-mode from codeql
loguecow Jul 9, 2024
6499255
fresh codeql
loguecow Jul 9, 2024
3921b6c
declared nullable rollermain model
loguecow Jul 9, 2024
6fc449e
github codeql
loguecow Jul 9, 2024
11a3149
changed branch
loguecow Jul 9, 2024
9673f0e
codeql build frontend
loguecow Jul 9, 2024
0a70547
codeql only csharp
loguecow Jul 9, 2024
0fc2c19
codeql
loguecow Jul 9, 2024
adfbfa5
codeql no path
loguecow Jul 9, 2024
062b9b7
codeql please work
loguecow Jul 9, 2024
007f928
codeql fix
loguecow Jul 9, 2024
ddbcaec
new codeql only csharp
loguecow Jul 9, 2024
ae3e390
codeql path change
loguecow Jul 9, 2024
79951fd
Merge branch 'main' of https://github.com/Altinn/altinn-support-dashb…
loguecow Jul 10, 2024
0af5c81
merge changes and node version
loguecow Jul 10, 2024
853c6eb
Update codeql-analysis.yml
loguecow Jul 11, 2024
3bf5a19
Update codeql-analysis.yml
loguecow Jul 12, 2024
62debc1
Update codeql-analysis.yml
loguecow Jul 12, 2024
e726a43
Update codeql-analysis.yml
loguecow Jul 12, 2024
bbf792d
Added xunit that validates input length
loguecow Jul 16, 2024
81e4d11
codeql analyze removed category
loguecow Jul 16, 2024
436eeac
codeql solution file
loguecow Jul 16, 2024
a4a56d9
add xunit csproj file
loguecow Jul 16, 2024
d22c2ff
csproj projectref path change
loguecow Jul 16, 2024
1999283
"default" codeql
loguecow Jul 16, 2024
ff27a71
codeql spesified build
loguecow Aug 15, 2024
53a3065
Build & test workflow test
loguecow Aug 16, 2024
164616d
added sonarcloud
loguecow Aug 19, 2024
5197cbb
added branch to buildtest sonar
loguecow Aug 19, 2024
da871d0
Renamed Model to ErRollerModel
loguecow Aug 20, 2024
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
51 changes: 51 additions & 0 deletions .github/workflows/build-and-analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build, Test, and SonarCloud Analysis

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'

- name: Cache SonarCloud packages
uses: actions/cache@v4
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Install SonarCloud scanners
run: |
dotnet tool install --global dotnet-sonarscanner

- name: Begin SonarCloud analysis
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
dotnet-sonarscanner begin /k:"Altinn_altinn-support-dashboard" /o:"altinn" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="**/coverage.opencover.xml" /d:sonar.exclusions="**/obj/**"

- name: Build & Test
run: |
dotnet build ./altinn-support-dashboard.sln -v q

dotnet test ./altinn-support-dashboard.sln -v q --collect:"XPlat Code Coverage" --results-directory TestResults/

- name: Complete sonar analysis
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
49 changes: 49 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "CodeQL"

on:
push:
branches: [ "30-implementering-av-oppslag-for-enhetsregisterroller-er-roller" ]
paths:
- 'src/**'
pull_request:
branches: [ "30-implementering-av-oppslag-for-enhetsregisterroller-er-roller" ]
paths:
- 'src/**'
schedule:
- cron: '35 18 * * 3'

jobs:
analyze:
name: Analyze C#
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
security-events: write
packages: read
actions: read
contents: read

strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup .NET 8.0.* SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Build Solution
run: dotnet build ./altinn-support-dashboard.sln

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -396,3 +396,4 @@ FodyWeavers.xsd

# JetBrains Rider
*.sln.iml
/backend/test/altinn-support-dashboard.backend.Tests/altinn-support-dashboard.backend.Tests.csproj
Loading
Loading