-
Notifications
You must be signed in to change notification settings - Fork 9
π AWS SDK v4 Migration - v2.0.0-preview1 Release #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
75764dd
feat: implement AWS SDK v4 migration with .NET Framework 4.7.2 support
Blind-Striker 6f5cea3
fix: resolve test failures and update package versions for v2.0.0-preβ¦
Blind-Striker bd57ff3
feat(extensions)!: migrate AwsClientFactoryWrapper to AWS SDK v4
Blind-Striker c1522fb
feat!: migrate to AWS SDK for .NET v4 with breaking changes
Blind-Striker f09bf0c
Feature/ci cd modernization (#47)
Blind-Striker db86a5e
Potential fix for code scanning alert no. 5: Workflow does not contaiβ¦
Blind-Striker 9f50dae
feat(build): implement Cake build system enhancement with Spectre.Conβ¦
Blind-Striker 08a411b
feat: complete Cake Build Enhancement Plan Phases 5-6
Blind-Striker 009b4c2
fix: update build summary message for clarity
Blind-Striker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,95 @@ | ||
| name: "CI/CD Pipeline" | ||
|
|
||
| on: | ||
| push: | ||
| paths-ignore: | ||
| - "**.md" | ||
| - LICENSE | ||
| branches: | ||
| - "master" | ||
| pull_request: | ||
| paths-ignore: | ||
| - "**.md" | ||
| - LICENSE | ||
| branches: | ||
| - master | ||
| - "feature/*" | ||
|
|
||
| env: | ||
| DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
| DOTNET_NOLOGO: true | ||
|
|
||
| jobs: | ||
| build-and-test: | ||
| name: "Build & Test (${{ matrix.name }})" | ||
| runs-on: ${{ matrix.os }} | ||
| env: | ||
| NUGET_PACKAGES: ${{ contains(matrix.os, 'windows') && format('{0}\.nuget\packages', github.workspace) || format('{0}/.nuget/packages', github.workspace) }} | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - os: windows-latest | ||
| name: "Windows" | ||
| script: "./build.ps1" | ||
|
|
||
| - os: ubuntu-22.04 | ||
| name: "Linux" | ||
| script: "./build.sh" | ||
|
|
||
| - os: macos-latest | ||
| name: "macOS" | ||
| script: "./build.sh" | ||
|
|
||
| steps: | ||
| - name: "Checkout" | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 # Full history for better caching | ||
|
|
||
| - name: "Setup .NET SDK" | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: | | ||
| 8.0.x | ||
| 9.0.x | ||
|
|
||
| - name: "Make build script executable" | ||
| if: runner.os != 'Windows' | ||
| run: chmod +x ./build.sh | ||
|
|
||
| - name: "Cache NuGet packages" | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ${{ runner.os == 'Windows' && format('{0}\.nuget\packages', github.workspace) || format('{0}/.nuget/packages', github.workspace) }} | ||
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json', '**/*.csproj', '**/Directory.Packages.props') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-nuget- | ||
|
|
||
| - name: "Build" | ||
| run: ${{ matrix.script }} --target build | ||
|
|
||
| - name: "Run Tests" | ||
| run: ${{ matrix.script }} --target tests --skipFunctionalTest ${{ runner.os == 'Linux' && 'false' || 'true' }} --exclusive | ||
|
|
||
| - name: "Publish Test Results" | ||
| uses: dorny/test-reporter@v1 | ||
| if: success() || failure() | ||
| with: | ||
| name: 'Test Results (${{ matrix.name }})' | ||
| path: '**/TestResults/*.trx' | ||
| reporter: 'dotnet-trx' | ||
| fail-on-error: true | ||
| max-annotations: 50 | ||
|
|
||
| - name: "Upload Test Artifacts" | ||
| uses: actions/upload-artifact@v4 | ||
| if: failure() | ||
| with: | ||
| name: test-results-${{ matrix.name }} | ||
| path: | | ||
| **/*.trx | ||
| **/TestResults/**/* | ||
| retention-days: 7 | ||
This file contains hidden or 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,27 @@ | ||
| name: Dependency Review | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| - "feature/*" | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| dependency-review: | ||
| name: "Dependency Review" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: "Checkout" | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: "Dependency Review" | ||
| uses: actions/dependency-review-action@v4 | ||
| with: | ||
| # Fail the check if a vulnerability with 'moderate' severity or higher is found. | ||
| fail-on-severity: moderate | ||
| # Always post a summary of the check as a comment on the PR. | ||
| comment-summary-in-pr: always |
This file contains hidden or 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,99 @@ | ||
| name: "Auto Publish to GitHub Packages" | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| paths-ignore: | ||
| - "**.md" | ||
| - LICENSE | ||
| - ".github/**" | ||
| - "docs/**" | ||
|
|
||
| env: | ||
| DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
| DOTNET_NOLOGO: true | ||
|
|
||
| jobs: | ||
| auto-publish: | ||
| name: "Auto Publish Development Build" | ||
| runs-on: ubuntu-22.04 | ||
| if: github.repository == 'localstack-dotnet/localstack-dotnet-client' | ||
| env: | ||
| NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| steps: | ||
| - name: "Checkout" | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: "Setup .NET SDK" | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: | | ||
| 8.0.x | ||
| 9.0.x | ||
|
|
||
| - name: "Cache NuGet packages" | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ${{ github.workspace }}/.nuget/packages | ||
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json', '**/*.csproj', '**/Directory.Packages.props') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-nuget- | ||
|
|
||
| - name: "Make build script executable" | ||
| run: chmod +x ./build.sh | ||
|
|
||
| - name: "Build & Test" | ||
| run: ./build.sh --target tests --skipFunctionalTest true | ||
|
|
||
| - name: "Setup GitHub Packages Authentication" | ||
| run: | | ||
| dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json \ | ||
| --name github-packages \ | ||
| --username ${{ github.actor }} \ | ||
| --password ${{ secrets.GITHUB_TOKEN }} \ | ||
| --store-password-in-clear-text | ||
|
|
||
| - name: "Pack & Publish LocalStack.Client" | ||
| run: | | ||
| echo "π¨ Building and publishing LocalStack.Client package..." | ||
| ./build.sh --target nuget-pack-and-publish \ | ||
| --package-source github \ | ||
| --package-id LocalStack.Client \ | ||
| --use-directory-props-version true \ | ||
| --branch-name ${{ github.ref_name }} \ | ||
| --package-secret ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: "Pack & Publish LocalStack.Client.Extensions" | ||
| run: | | ||
| echo "π¨ Building and publishing LocalStack.Client.Extensions package..." | ||
| ./build.sh --target nuget-pack-and-publish \ | ||
| --package-source github \ | ||
| --package-id LocalStack.Client.Extensions \ | ||
| --use-directory-props-version true \ | ||
| --branch-name ${{ github.ref_name }} \ | ||
| --package-secret ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: "Upload Package Artifacts" | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: "dev-packages-${{ github.run_number }}" | ||
| path: | | ||
| artifacts/*.nupkg | ||
| artifacts/*.snupkg | ||
| retention-days: 7 | ||
|
|
||
| - name: "Generate Build Summary" | ||
| run: | | ||
| echo "π¦ Generating build summary..." | ||
| ./build.sh --target workflow-summary \ | ||
| --use-directory-props-version true \ | ||
| --branch-name ${{ github.ref_name }} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 6 months ago
To resolve the issue, we will add an explicit
permissionsblock at the root of the workflow file. This will apply to all jobs in the workflow unless overridden by job-specificpermissions. Based on the tasks performed in the workflow (e.g., checkout, caching, uploading artifacts), the minimal necessary permissions are as follows:contents: read: Required for accessing repository contents.actions: write: Required for uploading artifacts.The
permissionsblock should be added immediately after thenamefield in the workflow file.