-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup Dependabot & CI/CodeQL workflows
- Loading branch information
1 parent
1992c9c
commit 3fdd88b
Showing
3 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,14 @@ | ||
version: 2 | ||
updates: | ||
|
||
# Workflows | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
|
||
# Project | ||
- package-ecosystem: nuget | ||
directory: / | ||
schedule: | ||
interval: monthly |
This file contains 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,47 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'Pages/**' | ||
- 'Properties/**' | ||
- 'wwwroot/**' | ||
- '*.csproj' | ||
- '*.json' | ||
- '**/*.cs' | ||
- '.github/workflows/ci.yml' | ||
branches: | ||
- '**' | ||
tags: | ||
- '*.*.*' | ||
workflow_dispatch: | ||
|
||
env: | ||
ARTIFACT_NAME: account-system | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build project | ||
run: dotnet build --nologo --configuration Release --no-restore --no-self-contained | ||
|
||
- name: Upload build artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ env.ARTIFACT_NAME }} | ||
path: bin/Release/net7.0/* |
This file contains 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,34 @@ | ||
name: CodeQL | ||
|
||
on: | ||
push: | ||
paths: | ||
- '**' | ||
branches: | ||
- '**' | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
codeql: | ||
name: CodeQL | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
packages: read | ||
security-events: write | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: csharp | ||
|
||
- name: Auto-build | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL analysis | ||
uses: github/codeql-action/analyze@v2 |