diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000..4be66a962 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,78 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL" + +on: + push: + branches: [ "master" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "master" ] + schedule: + - cron: '23 17 * * 1' + +env: + AZURE_ARTIFACTS_FEED_URL: https://pkgs.dev.azure.com/bertk0374/_packaging/intern/nuget/v3/index.json + +permissions: + contents: read + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'csharp' ] + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] + # Use only 'java' to analyze code written in Java, Kotlin or both + # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 # avoid shallow clone so nbgv can do its work. + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + 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. + + # 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 + # queries: security-extended,security-and-quality + build-mode: "manual" # Use "auto" for automatic build detection, or "none" to skip the build step. + + - name: Setup dotnet using global.json + uses: actions/setup-dotnet@v4 + with: + global-json-file: global.json + + - run: | + echo "Run, Build Application using script" + dotnet build coverlet.sln --configuration Debug + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" diff --git a/.github/workflows/issue-close.yml b/.github/workflows/issue-close.yml index c4a17a05f..fb73d0151 100644 --- a/.github/workflows/issue-close.yml +++ b/.github/workflows/issue-close.yml @@ -7,6 +7,9 @@ on: env: DAYS_BEFORE_ISSUE_CLOSE: 275 +permissions: + contents: read + jobs: close-issues: runs-on: ubuntu-latest diff --git a/.github/workflows/issue-inactive.yml b/.github/workflows/issue-inactive.yml index b2bcfaef2..c80481428 100644 --- a/.github/workflows/issue-inactive.yml +++ b/.github/workflows/issue-inactive.yml @@ -7,6 +7,9 @@ on: env: DAYS_BEFORE_ISSUE_STALE: 90 +permissions: + contents: read + jobs: close-issues: runs-on: ubuntu-latest diff --git a/.github/workflows/issue-untriaged.yml b/.github/workflows/issue-untriaged.yml index 2115d7c30..780713f33 100644 --- a/.github/workflows/issue-untriaged.yml +++ b/.github/workflows/issue-untriaged.yml @@ -7,13 +7,17 @@ on: types: - reopened - opened + +permissions: + contents: read + jobs: label_issues: runs-on: ubuntu-latest permissions: issues: write steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: script: | github.rest.issues.addLabels({ diff --git a/.github/workflows/release-draft.yml b/.github/workflows/release-draft.yml new file mode 100644 index 000000000..3900e0d51 --- /dev/null +++ b/.github/workflows/release-draft.yml @@ -0,0 +1,23 @@ +name: Release Drafter + +on: + push: + branches: + - main + +permissions: + contents: read + +jobs: + update_release_draft: + permissions: + contents: write # for release-drafter/release-drafter to create a github release + pull-requests: write # for release-drafter/release-drafter to add label to PR + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v6 + with: + prerelease: true + prerelease-identifier: beta + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 514880624..2fad5b5e3 100644 --- a/.gitignore +++ b/.gitignore @@ -318,3 +318,4 @@ FolderProfile.pubxml /NuGet.config nuget.config *.dmp +Playground/ diff --git a/global.json b/global.json index 6dfc6666e..8b2877a60 100644 --- a/global.json +++ b/global.json @@ -1,5 +1,5 @@ { "sdk": { - "version": "8.0.407" + "version": "8.0.409" } }