Skip to content

Instantly share code, notes, and snippets.

View mahoekst's full-sized avatar

Matthijs Hoekstra mahoekst

  • 06:26 (UTC -07:00)
View GitHub Profile
@mahoekst
mahoekst / main.yaml
Created October 3, 2022 06:00
Github action with federated OIDC flow to publish hugo to azure storage
# This is a basic workflow to help you get started with Actions
name: CIforHugoStaticSite
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
@mahoekst
mahoekst / KVClientCredentialsProgram.cs
Last active February 19, 2022 05:16
Using Keyvault with client credentials
// create app registration in AAD and secret
// Go to Keyvault and add app in access policies
// give sign permissions!
//
using Azure.Identity;
using Azure.Security.KeyVault.Keys;
using Azure.Security.KeyVault.Keys.Cryptography;
using Azure.Security.KeyVault.Secrets;
using System;
using System.Diagnostics;