Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
27 changes: 27 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: dotnet-sdk
directory: /
assignees:
- "@LorettaDevs/core"
commit-message:
prefix: chore
include: scope
schedule:
interval: weekly
day: friday
- package-ecosystem: github-actions
directory: /
assignees:
- "@LorettaDevs/core"
commit-message:
prefix: ci
include: scope
schedule:
interval: weekly
day: friday
58 changes: 25 additions & 33 deletions .github/workflows/nigthly-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,27 @@
no-prefix-version: ${{ steps.gen-version.outputs.NO_PREFIX_VERSION }}
has-nightly: ${{ steps.gen-version.outputs.HAS_NIGHTLY }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@v6.0.2
with:
fetch-depth: 0

- name: Extract Latest Changes
run: ./build/Extract-LatestChanges.ps1
shell: pwsh

- name: Setup .NET
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
- uses: actions/setup-dotnet@v5.1.0
with:
dotnet-version: 8.0.x

- name: Generate Version Number
id: gen-version
run: |
dotnet run --project src/Tools/NightlyTool --verbosity quiet -- $env:GITHUB_OUTPUT
shell: pwsh

- name: Tag New Nightly
if: steps.gen-version.outputs.HAS_NIGHTLY == 'yes'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag --annotate --file=LATESTCHANGES.md --cleanup=whitespace ${{ steps.gen-version.outputs.VERSION }}
git push origin ${{ steps.gen-version.outputs.VERSION }}
shell: pwsh

release:
name: Release
Expand All @@ -62,39 +55,38 @@
contents: write # Allow to checkout (read) and make new releases (write)
if: needs.extract-nightly-info.outputs.has-nightly == 'yes'
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup .NET
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
- uses: actions/checkout@v6.0.2
- uses: actions/setup-dotnet@v5.1.0
with:
dotnet-version: |
8.0.x
9.0.x

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore --configuration Release -p:Version=${{ needs.extract-nightly-info.outputs.no-prefix-version }}

- name: Generate NuGet packages
run: dotnet pack --no-restore --configuration Release --output ./packages --include-symbols -p:SymbolPackageFormat=snupkg -p:Version=${{ needs.extract-nightly-info.outputs.no-prefix-version }}

- name: Publish packages
10.0.x
- name: Package Libraries
run: |
Get-ChildItem -Path ./packages/ -Filter *.nupkg -File -Name | ForEach-Object {
dotnet nuget push ./packages/$_ --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
}
shell: pwsh

dotnet pack \
--configuration Release \
--output ./packages \
--include-symbols \
-p:Version=${{ needs.extract-nightly-info.outputs.no-prefix-version }}
shell: bash
- name: Get a short-lived NuGet API key
uses: NuGet/login@v1

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Nightly Release' step
Uses Step: nuget-login
uses 'NuGet/login' with ref 'v1', not a pinned commit hash
id: nuget-login
with:
user: ${{ secrets.NUGET_USER }}
- name: Publish Packages to NuGet
run: |
dotnet nuget push ./packages/*.nupkg \
--api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}" \
--source https://api.nuget.org/v3/index.json \
--skip-duplicate
shell: bash
- name: Extract Latest Changes
run: ./build/Extract-LatestChanges.ps1
shell: pwsh

- name: Create Release
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2.5.0

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Nightly Release' step
Uses Step
uses 'softprops/action-gh-release' with ref 'v2.5.0', not a pinned commit hash
with:
name: ${{ needs.extract-nightly-info.outputs.full-version }}
tag_name: ${{ needs.extract-nightly-info.outputs.full-version }}
Expand Down
42 changes: 22 additions & 20 deletions .github/workflows/stable-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,37 @@
permissions:
contents: write # Allow checkout (read) and release creation (write)
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup .NET
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
- uses: actions/checkout@v6.0.2
- uses: actions/setup-dotnet@v5.1.0
with:
dotnet-version: |
8.0.x
9.0.x

- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Generate NuGet packages
run: dotnet pack --configuration Release --output ./packages --no-restore --include-symbols -p:SymbolPackageFormat=snupkg
- name: Publish packages
10.0.x
- name: Package Libraries
run: |
Get-ChildItem -Path ./packages/ -Filter *.nupkg -File -Name | ForEach-Object {
dotnet nuget push ./packages/$_ --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
}
shell: pwsh

dotnet pack \
--configuration Release \
--output ./packages \
--include-symbols
shell: bash
- name: Get a short-lived NuGet API key
uses: NuGet/login@v1

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Stable Release' step
Uses Step: nuget-login
uses 'NuGet/login' with ref 'v1', not a pinned commit hash
id: nuget-login
with:
user: ${{ secrets.NUGET_USER }}
- name: Publish Packages to NuGet
run: |
dotnet nuget push ./packages/*.nupkg \
--api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}" \
--source https://api.nuget.org/v3/index.json \
--skip-duplicate
shell: bash
- name: Extract Latest Changes
run: ./build/Extract-LatestChanges.ps1
shell: pwsh
- name: Create Release
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2.5.0

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Stable Release' step
Uses Step
uses 'softprops/action-gh-release' with ref 'v2.5.0', not a pinned commit hash
with:
body_path: LATESTCHANGES.md
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'alpha') }}
Loading