github actions

Azure Defender for Cloud

January 15, 2022  -   3 mins read time -   617 words -  garrardkitchen

azure, defender for cloud, cicd, cve, github actions, windows containers

Defender for Cloud Containers Setting up Defender for Cloud Containers to work with your CICD pipeline is quick and uncomplicated. I do not walk through these set up steps in this post. For that, you can follow those few steps here in this Microsoft post instead ➡ Setup. The goal of this post is to highlight a few areas of interest and to share my opinions on this feature. I have understandably obfuscated sensitive information. ...

Npm E401 and CERT_NOT_YET_VALID

January 11, 2022  -   4 mins read time -   651 words -  garrardkitchen

github actions, npm, nodejs, e401, cert_not_yet_valid, docker, acr, npmrc, GH Secrets

Today a PR Merge resulted in a GHA failure. Sadly, this is not the only CICD pipeline to fail this year! This particular pipeline builds a NodeJS Image, pushes the image to ACR and deploys the service to a production Docker Swarm (on merge to main). This was the error: [3/7] RUN npm install: #7 1.469 npm ERR! code E401 #7 1.470 npm ERR! Unable to authenticate, need: Bearer authorization_uri=https://login.windows.net/736f9f**-09-49-86**-b******31f407, Basic realm=“https://pkgsprodsu3weu. ...

Github Actions Workflow Env Vars

January 8, 2022  -   4 mins read time -   693 words -  garrardkitchen

github actions, linux, windows, syntax, self-hosted runner, environment variables, workflow, cicd

In my current role as Head of Cloud Platform, I am leading the technical effort of migrating our entire on-premise real-estate to Azure. Part of this mission, is to upgrade the runtimes of our applications, regardless of their current placement; IIS Web apps, Windows Services and Docker Swarm containers. I say “part of this mission” as another aspect of this migration is to create a new foundation for our platform - AKS. ...

Permission Denied While Trying to Connect to the Docker Daemon Socket

January 7, 2022  -   3 mins read time -   497 words -  garrardkitchen

docker, linux, github actions, GHA, self-hosted runner, dotnet, Azure Container Registry, acr, containers, pods

Out of the blue today, my first day back after Christmas break, I got this when running a GH Actions Workflow on one of our Self-Hosted Linux Runners 😱: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied We have several GitHub Self-Hosted Runners running on Linux and Windows O/S that produce, amongst other artefacts, Linux and Windows images. ...