diff --git a/.github/workflows/ps-test-devops-self-hosted.yml b/.github/workflows/ps-test-devops-self-hosted.yml new file mode 100644 index 00000000..1026ff16 --- /dev/null +++ b/.github/workflows/ps-test-devops-self-hosted.yml @@ -0,0 +1,35 @@ +# Read the official documentation here : https://learn.microsoft.com/en-us/azure/defender-for-cloud/quickstart-onboard-github + +name: "PS Test DevOps-SelfHosted" +on: push + +jobs: + MSDO: + # currently only windows latest is supported + runs-on: self-hosted + + steps: + - uses: actions/checkout@v3 +# - uses: actions/setup-dotnet@v3 +# with: +# dotnet-version: | +# 5.0.x +# 6.0.x +# - name: Azure PowerShell Action +# uses: Azure/powershell@v1.2.0 +# with: +# # Specify the Az PowerShell script here. +# inlineScript: | +# Get-ChildItem env:* | sort-object name | select-object name, value +# azPSVersion: "latest" +# errorActionPreference: continue + - name: Run Microsoft Security DevOps + uses: microsoft/security-devops-action@v1.7.2 + id: msdo + with: + tools: bandit,credscan,eslint,templateanalyzer,terrascan + - name: Upload alerts file as a workflow artifact + uses: actions/upload-artifact@v3 + with: + name: alerts + path: ${{ steps.msdo.outputs.sarifFile }} diff --git a/.github/workflows/ps-test-devops.yml b/.github/workflows/ps-test-devops.yml new file mode 100644 index 00000000..e04a1f46 --- /dev/null +++ b/.github/workflows/ps-test-devops.yml @@ -0,0 +1,35 @@ +# Read the official documentation here : https://learn.microsoft.com/en-us/azure/defender-for-cloud/quickstart-onboard-github + +name: "PS Test DevOps" +on: push + +jobs: + MSDO: + # currently only windows latest is supported + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 5.0.x + 6.0.x + - name: Azure PowerShell Action + uses: Azure/powershell@v1.2.0 + with: + # Specify the Az PowerShell script here. + inlineScript: | + Get-ChildItem env:* | sort-object name | select-object name, value + azPSVersion: "latest" + errorActionPreference: continue + - name: Run Microsoft Security DevOps + uses: microsoft/security-devops-action@v1.7.2 + id: msdo + with: + tools: bandit,credscan,eslint,templateanalyzer,terrascan + - name: Upload alerts file as a workflow artifact + uses: actions/upload-artifact@v3 + with: + name: alerts + path: ${{ steps.msdo.outputs.sarifFile }} diff --git a/.github/workflows/ps-test-linux.yml b/.github/workflows/ps-test-linux.yml new file mode 100644 index 00000000..876b7ca1 --- /dev/null +++ b/.github/workflows/ps-test-linux.yml @@ -0,0 +1,35 @@ +# Read the official documentation here : https://learn.microsoft.com/en-us/azure/defender-for-cloud/quickstart-onboard-github + +name: "PS Test DevOps (linux)" +on: push + +jobs: + MSDO: + # currently only windows latest is supported + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 5.0.x + 6.0.x + - name: Azure PowerShell Action + uses: Azure/powershell@v1.2.0 + with: + # Specify the Az PowerShell script here. + inlineScript: | + Get-ChildItem env:* | sort-object name | select-object name, value + azPSVersion: "latest" + errorActionPreference: continue + - name: Run Microsoft Security DevOps + uses: microsoft/security-devops-action@v1.6.0 + id: msdo + with: + tools: bandit,credscan,eslint,templateanalyzer,terrascan + - name: Upload alerts file as a workflow artifact + uses: actions/upload-artifact@v3 + with: + name: alerts + path: ${{ steps.msdo.outputs.sarifFile }} diff --git a/src/__Init__.py b/src/__Init__.py new file mode 100644 index 00000000..7fa58791 --- /dev/null +++ b/src/__Init__.py @@ -0,0 +1,5 @@ +print("Hello, World!") +client = SecretClient(vault_url=vault_url, credential=credential) +password = "test" +username = client.get_secret("apikey") +password = client.get_secret("apisecret")