Skip to content

Commit e5db2e2

Browse files
authored
Merge pull request #34 from strvmarv/feature/v2.0.0-rc1-security-improvements
Release v2.0.0-rc.1: Major modernization with .NET 9 support and secu…
2 parents 4266719 + 53b534f commit e5db2e2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+5223
-336
lines changed

.env.example

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Updown.io .NET Client - Environment Variables Example
2+
# Copy this file to .env and fill in your actual values
3+
# NEVER commit the .env file to version control
4+
5+
# Your Updown.io API key (get it from https://updown.io/settings/edit)
6+
# Used for manual integration tests
7+
UPDOWN_API_KEY=your-api-key-here
8+
9+
# Your pulse monitoring URL (from Updown.io dashboard)
10+
# Format: https://pulse.updown.io/YOUR-TOKEN/YOUR-KEY
11+
UPDOWN_PULSE_URL=https://pulse.updown.io/your-token/your-key
12+
13+
# Notes:
14+
# - These values are only needed if you want to run manual tests against the real API
15+
# - The automated unit tests do NOT require these values
16+
# - For security, use separate API keys for development/testing vs production
17+
# - This file (.env) is already in .gitignore and will not be committed

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
uses: actions/setup-dotnet@v4
2525
with:
2626
dotnet-version: 8.0.x
27+
- name: Setup .NET 9
28+
uses: actions/setup-dotnet@v4
29+
with:
30+
dotnet-version: 9.0.x
2731
- name: Restore dependencies
2832
run: dotnet restore
2933
- name: Build

.github/workflows/build-test-nuget.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ name: build, test, push nuget
66
on:
77
workflow_dispatch:
88
release:
9-
branches: [ "main" ]
109
types: [released]
1110

1211
jobs:
@@ -16,10 +15,18 @@ jobs:
1615

1716
steps:
1817
- uses: actions/checkout@v4
19-
- name: Setup .NET
18+
- name: Setup .NET 6
19+
uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: 6.0.x
22+
- name: Setup .NET 8
2023
uses: actions/setup-dotnet@v4
2124
with:
2225
dotnet-version: 8.0.x
26+
- name: Setup .NET 9
27+
uses: actions/setup-dotnet@v4
28+
with:
29+
dotnet-version: 9.0.x
2330
- name: Restore dependencies
2431
run: dotnet restore
2532
- name: Build

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,3 +396,18 @@ FodyWeavers.xsd
396396

397397
# JetBrains Rider
398398
*.sln.iml
399+
400+
# Secrets and API Keys
401+
*.env
402+
*.env.local
403+
*secrets.json
404+
*secrets*.json
405+
appsettings.Development.json
406+
appsettings.Local.json
407+
TestConfiguration.json
408+
TestSettings.json
409+
410+
# Manual test configuration (if using external config)
411+
test/**/*Configuration.json
412+
test/**/*Settings.json
413+
!test/**/*Settings.Example.json

0 commit comments

Comments
 (0)