Skip to content

Commit e8b7a2f

Browse files
authored
Release/v5.0.0 (#8)
* - Version 5.0.0 check-in
1 parent be0835e commit e8b7a2f

35 files changed

+292
-784
lines changed

.github/workflows/CI-Package-Release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
github-token: '${{ secrets.GH_Packages }}'
1414
steps:
1515
- name: Step-01 Checkout code
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
1919
- name: Step-02 Lint Code Base
@@ -39,7 +39,7 @@ jobs:
3939
versionSpec: 5.x
4040

4141
- name: Step-02 Check out Code
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v4
4343
with:
4444
fetch-depth: 0
4545

@@ -67,7 +67,7 @@ jobs:
6767
working-directory: '${{ env.working-directory }}'
6868

6969
- name: Step-08 Upload Build Artifacts
70-
uses: actions/upload-artifact@v3
70+
uses: actions/upload-artifact@v4
7171
with:
7272
name: build-artifact
7373
path: ${{env.working-directory}}
@@ -88,7 +88,7 @@ jobs:
8888
versionSpec: 5.x
8989

9090
- name: Step-02 Check out Code
91-
uses: actions/checkout@v2
91+
uses: actions/checkout@v4
9292
with:
9393
fetch-depth: 0
9494

@@ -117,7 +117,7 @@ jobs:
117117
working-directory: '${{ env.working-directory }}'
118118

119119
- name: Step-08 Upload Build Artifacts
120-
uses: actions/upload-artifact@v3
120+
uses: actions/upload-artifact@v4
121121
with:
122122
name: build-artifact
123123
path: ${{env.working-directory}}
@@ -136,7 +136,7 @@ jobs:
136136
working-directory: /home/runner/work/FileUtil.Core/FileUtil.Core
137137
steps:
138138
- name: Step-01 Retrieve Build Artifacts
139-
uses: actions/download-artifact@v3
139+
uses: actions/download-artifact@v4
140140
with:
141141
name: build-artifact
142142
path: ${{env.working-directory}}

.github/workflows/Master-Build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- name: Setup .NET
1919
uses: actions/setup-dotnet@v3
2020
with:
@@ -32,7 +32,7 @@ jobs:
3232
github-token: '${{ secrets.GH_Packages }}'
3333
steps:
3434
- name: Step-01 Checkout code
35-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3636
with:
3737
fetch-depth: 0
3838
- name: Step-02 Lint Code Base

.github/workflows/Master-CodeQL.yml

+59-28
Original file line numberDiff line numberDiff line change
@@ -7,65 +7,96 @@
77
# ******** NOTE ********
88
# We have attempted to detect the languages in your repository. Please check
99
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
10+
# supported CodeQL languages.
11+
#
1212
name: "Master-CodeQL"
1313

1414
on:
1515
push:
1616
branches: [ "master" ]
17+
paths-ignore:
18+
- "**/*.md"
19+
- "**/*.gitignore"
20+
- "**/*.gitattributes"
1721
schedule:
18-
- cron: '35 15 * * 2'
22+
- cron: '42 7 * * 5'
1923

2024
jobs:
2125
analyze:
22-
name: Analyze
23-
runs-on: ubuntu-latest
26+
name: Analyze (${{ matrix.language }})
27+
# Runner size impacts CodeQL analysis time. To learn more, please see:
28+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
29+
# - https://gh.io/supported-runners-and-hardware-resources
30+
# - https://gh.io/using-larger-runners (GitHub.com only)
31+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
32+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
2433
permissions:
34+
# required for all workflows
35+
security-events: write
36+
37+
# required to fetch internal or private CodeQL packs
38+
packages: read
39+
40+
# only required for workflows in private repositories
2541
actions: read
2642
contents: read
27-
security-events: write
2843

2944
strategy:
3045
fail-fast: false
3146
matrix:
32-
language: [ 'csharp' ]
33-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
34-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
35-
47+
include:
48+
- language: actions
49+
build-mode: none
50+
- language: csharp
51+
build-mode: none
52+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
53+
# Use `c-cpp` to analyze code written in C, C++ or both
54+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
55+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
56+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
57+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
58+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
59+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
3660
steps:
3761
- name: Checkout repository
38-
uses: actions/checkout@v3
62+
uses: actions/checkout@v4
63+
64+
# Add any setup steps before running the `github/codeql-action/init` action.
65+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
66+
# or others). This is typically only required for manual builds.
67+
# - name: Setup runtime (example)
68+
# uses: actions/setup-example@v1
3969

4070
# Initializes the CodeQL tools for scanning.
4171
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v2
72+
uses: github/codeql-action/init@v3
4373
with:
4474
languages: ${{ matrix.language }}
75+
build-mode: ${{ matrix.build-mode }}
4576
# If you wish to specify custom queries, you can do so here or in a config file.
4677
# By default, queries listed here will override any specified in a config file.
4778
# Prefix the list here with "+" to use these queries and those in the config file.
4879

49-
# 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
80+
# For more 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
5081
# queries: security-extended,security-and-quality
5182

52-
53-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
54-
# If this step fails, then you should remove it and run the build manually (see below)
55-
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v2
57-
83+
# If the analyze step fails for one of the languages you are analyzing with
84+
# "We were unable to automatically build your code", modify the matrix above
85+
# to set the build mode to "manual" for that language. Then modify this step
86+
# to build your code.
5887
# ℹ️ Command-line programs to run using the OS shell.
5988
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
60-
61-
# If the Autobuild fails above, remove it and uncomment the following three lines.
62-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
63-
64-
# - run: |
65-
# echo "Run, Build Application using script"
66-
# ./location_of_script_within_repo/buildscript.sh
89+
- if: matrix.build-mode == 'manual'
90+
shell: bash
91+
run: |
92+
echo 'If you are using a "manual" build mode for one or more of the' \
93+
'languages you are analyzing, replace this with the commands to build' \
94+
'your code, for example:'
95+
echo ' make bootstrap'
96+
echo ' make release'
97+
exit 1
6798
6899
- name: Perform CodeQL Analysis
69-
uses: github/codeql-action/analyze@v2
100+
uses: github/codeql-action/analyze@v3
70101
with:
71-
category: "/language:${{matrix.language}}"
102+
category: "/language:${{matrix.language}}"

.github/workflows/PR-CodeQL.yml

+53-25
Original file line numberDiff line numberDiff line change
@@ -12,64 +12,92 @@
1212
name: "PR-CodeQL"
1313

1414
on:
15+
push:
1516
pull_request:
1617
types: [opened, reopened, edited, synchronize]
1718
paths-ignore:
1819
- "**/*.md"
1920
- "**/*.gitignore"
20-
- "**/*.gitattributes"
21+
- "**/*.gitattributes"
2122
schedule:
2223
- cron: '35 15 * * 2'
2324

2425
jobs:
2526
analyze:
26-
name: Analyze
27-
runs-on: ubuntu-latest
27+
name: Analyze (${{ matrix.language }})
28+
# Runner size impacts CodeQL analysis time. To learn more, please see:
29+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
30+
# - https://gh.io/supported-runners-and-hardware-resources
31+
# - https://gh.io/using-larger-runners (GitHub.com only)
32+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
33+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
2834
permissions:
35+
# required for all workflows
36+
security-events: write
37+
38+
# required to fetch internal or private CodeQL packs
39+
packages: read
40+
41+
# only required for workflows in private repositories
2942
actions: read
3043
contents: read
31-
security-events: write
3244

3345
strategy:
3446
fail-fast: false
3547
matrix:
36-
language: [ 'csharp' ]
37-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
38-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
39-
48+
include:
49+
- language: actions
50+
build-mode: none
51+
- language: csharp
52+
build-mode: none
53+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
54+
# Use `c-cpp` to analyze code written in C, C++ or both
55+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
56+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
57+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
58+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
59+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
60+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
4061
steps:
4162
- name: Checkout repository
42-
uses: actions/checkout@v3
63+
uses: actions/checkout@v4
64+
65+
# Add any setup steps before running the `github/codeql-action/init` action.
66+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
67+
# or others). This is typically only required for manual builds.
68+
# - name: Setup runtime (example)
69+
# uses: actions/setup-example@v1
4370

4471
# Initializes the CodeQL tools for scanning.
4572
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v2
73+
uses: github/codeql-action/init@v3
4774
with:
4875
languages: ${{ matrix.language }}
76+
build-mode: ${{ matrix.build-mode }}
4977
# If you wish to specify custom queries, you can do so here or in a config file.
5078
# By default, queries listed here will override any specified in a config file.
5179
# Prefix the list here with "+" to use these queries and those in the config file.
5280

53-
# 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
81+
# For more 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
5482
# queries: security-extended,security-and-quality
5583

56-
57-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
58-
# If this step fails, then you should remove it and run the build manually (see below)
59-
- name: Autobuild
60-
uses: github/codeql-action/autobuild@v2
61-
84+
# If the analyze step fails for one of the languages you are analyzing with
85+
# "We were unable to automatically build your code", modify the matrix above
86+
# to set the build mode to "manual" for that language. Then modify this step
87+
# to build your code.
6288
# ℹ️ Command-line programs to run using the OS shell.
6389
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
64-
65-
# If the Autobuild fails above, remove it and uncomment the following three lines.
66-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
67-
68-
# - run: |
69-
# echo "Run, Build Application using script"
70-
# ./location_of_script_within_repo/buildscript.sh
90+
- if: matrix.build-mode == 'manual'
91+
shell: bash
92+
run: |
93+
echo 'If you are using a "manual" build mode for one or more of the' \
94+
'languages you are analyzing, replace this with the commands to build' \
95+
'your code, for example:'
96+
echo ' make bootstrap'
97+
echo ' make release'
98+
exit 1
7199
72100
- name: Perform CodeQL Analysis
73-
uses: github/codeql-action/analyze@v2
101+
uses: github/codeql-action/analyze@v3
74102
with:
75103
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)