Skip to content

Commit 4e7a814

Browse files
committed
add .github\workflows\release-draft.yml
1 parent 0a2024d commit 4e7a814

File tree

7 files changed

+117
-2
lines changed

7 files changed

+117
-2
lines changed

.github/workflows/codeql.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "master" ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "master" ]
20+
schedule:
21+
- cron: '23 17 * * 1'
22+
23+
env:
24+
AZURE_ARTIFACTS_FEED_URL: https://pkgs.dev.azure.com/bertk0374/_packaging/intern/nuget/v3/index.json
25+
26+
permissions:
27+
contents: read
28+
29+
jobs:
30+
analyze:
31+
name: Analyze
32+
runs-on: ubuntu-latest
33+
permissions:
34+
actions: read
35+
contents: read
36+
security-events: write
37+
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
language: [ 'csharp' ]
42+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
43+
# Use only 'java' to analyze code written in Java, Kotlin or both
44+
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
45+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
46+
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v4
50+
with:
51+
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
52+
53+
# Initializes the CodeQL tools for scanning.
54+
- name: Initialize CodeQL
55+
uses: github/codeql-action/init@v3
56+
with:
57+
languages: ${{ matrix.language }}
58+
# If you wish to specify custom queries, you can do so here or in a config file.
59+
# By default, queries listed here will override any specified in a config file.
60+
# Prefix the list here with "+" to use these queries and those in the config file.
61+
62+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
63+
# queries: security-extended,security-and-quality
64+
build-mode: "manual" # Use "auto" for automatic build detection, or "none" to skip the build step.
65+
66+
- name: Setup dotnet using global.json
67+
uses: actions/setup-dotnet@v4
68+
with:
69+
global-json-file: global.json
70+
71+
# - name: Restore dependencies
72+
# run: dotnet restore
73+
74+
- run: |
75+
echo "Run, Build Application using script"
76+
dotnet build -c coverlet.sln
77+
78+
- name: Perform CodeQL Analysis
79+
uses: github/codeql-action/analyze@v3
80+
with:
81+
category: "/language:${{matrix.language}}"

.github/workflows/issue-close.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
env:
88
DAYS_BEFORE_ISSUE_CLOSE: 275
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
close-issues:
1215
runs-on: ubuntu-latest

.github/workflows/issue-inactive.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
env:
88
DAYS_BEFORE_ISSUE_STALE: 90
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
close-issues:
1215
runs-on: ubuntu-latest

.github/workflows/issue-untriaged.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ on:
77
types:
88
- reopened
99
- opened
10+
11+
permissions:
12+
contents: read
13+
1014
jobs:
1115
label_issues:
1216
runs-on: ubuntu-latest
1317
permissions:
1418
issues: write
1519
steps:
16-
- uses: actions/github-script@v6
20+
- uses: actions/github-script@v7
1721
with:
1822
script: |
1923
github.rest.issues.addLabels({

.github/workflows/release-draft.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
update_release_draft:
13+
permissions:
14+
contents: write # for release-drafter/release-drafter to create a github release
15+
pull-requests: write # for release-drafter/release-drafter to add label to PR
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: release-drafter/release-drafter@v6
19+
with:
20+
prerelease: true
21+
prerelease-identifier: beta
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,3 +318,4 @@ FolderProfile.pubxml
318318
/NuGet.config
319319
nuget.config
320320
*.dmp
321+
Playground/

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "8.0.407"
3+
"version": "8.0.409"
44
}
55
}

0 commit comments

Comments
 (0)