Skip to content
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

Release #69

Merged
merged 2 commits into from
Feb 24, 2025
Merged
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
22 changes: 22 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
{
"name": "csharp-ovh",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/dotnet:1-9.0-bookworm"
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [5000, 5001],
// "portsAttributes": {
// "5001": {
// "protocol": "https"
// }
// }
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "dotnet restore",
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ env:

jobs:
build-and-test:
name: build-and-test-${{matrix.os}}
name: build-and-test
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
8 changes: 4 additions & 4 deletions csharp-ovh/csharp-ovh.csproj
Original file line number Diff line number Diff line change
@@ -3,10 +3,10 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>csharp-ovh</AssemblyName>
<Title>OVH C# API Wrapper</Title>
<PackageVersion>4.0.5</PackageVersion>
<PackageDescription>A set of classes and helpers to make calls to OVH's APIs.</PackageDescription>
<Authors>Luke Marlin;Julien Loir</Authors>
<Title>OVHcloud C# API Wrapper</Title>
<PackageVersion>4.0.6</PackageVersion>
<PackageDescription>A set of classes and helpers to make calls to OVHcloud's APIs.</PackageDescription>
<Authors>OVHcloud</Authors>
<RepositoryUrl>https://github.com/ovh/csharp-ovh</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageLicenseFile>LICENSE</PackageLicenseFile>

Unchanged files with check annotations Beta

public static string GenerateSignature(string applicationSecret, string consumerKey,
long currentTimestamp, string method, string target, string data = null)
{
SHA1Managed sha1Hasher = new SHA1Managed();

Check warning on line 231 in csharp-ovh/Client/Client.cs

GitHub Actions / build-and-test

'SHA1Managed' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 231 in csharp-ovh/Client/Client.cs

GitHub Actions / build-and-test

'SHA1Managed' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 231 in csharp-ovh/Client/Client.cs

GitHub Actions / build-and-test

'SHA1Managed' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 231 in csharp-ovh/Client/Client.cs

GitHub Actions / build-and-test

'SHA1Managed' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 231 in csharp-ovh/Client/Client.cs

GitHub Actions / build-and-test

'SHA1Managed' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 231 in csharp-ovh/Client/Client.cs

GitHub Actions / build-and-test

'SHA1Managed' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 231 in csharp-ovh/Client/Client.cs

GitHub Actions / build-and-test

'SHA1Managed' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 231 in csharp-ovh/Client/Client.cs

GitHub Actions / build-and-test

'SHA1Managed' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'
string toSign =
string.Join("+", applicationSecret, consumerKey, method,
target, data, currentTimestamp);