Upgrade GitHub App Azure-Sentinel

George Zerphey 181 Reputation points
2024-05-20T19:24:19.46+00:00

We have been using the Azure-Sentinel GitHub App to synchronize our repository to Sentinel. Its been a while since its been installed and lately we have been getting the following error:

deploy-content Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: azure/login@v1, azure/powershell@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Is there a way to trigger an update of the GitHub App or reinstall it without losing the connection information we have in the system?

Thank you,

Microsoft Security | Microsoft Sentinel
{count} votes

1 answer

Sort by: Most helpful
  1. George Zerphey 181 Reputation points
    2024-05-22T19:18:36.3833333+00:00

    I have found an answer to this for everyone in the future. I had to get the latest ps1 file from Sentinel by connecting it to a new repo and made a few alterations to the yml file. @Marilee Turscak-MSFT As a side-note it would be really helpful to understand where these yml templates and ps1 files are stored so we can watch them for updates

    YML Updates:

    Checkout had to be changed to version 4.

    • name: Checkout uses: actions/checkout@v4

    Login had to be changed to version 2. These had to be changed for each login retry.

    steps: - name: Login to Azure (Attempt 1) continue-on-error: true id: login1 uses: azure/login@v2

    Powershell needed to be changed to version 2

    • name: Deploy Content to Azure Sentinel uses: azure/powershell@v2
    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.