Skip to content

Conversation

@azaslonov
Copy link
Member

@azaslonov azaslonov commented Oct 10, 2025

Problem: We have recently deprecated direct MAPI access in the APIM service, so the portal now uses ARM APIs for content management and Data APIs for fetching the data (like APIs, operations, products, etc.). The customers sometimes need to run certain operations like publishing in dev ops pipeline (e.g., GitHub Actions) which needs a way to authenticate against ARM APIs. For that the pipeline has to use client_credentials flow to acquire the token. Hence, the script needs to take this flow into account.

Example of GitHub Actions pipeline YAML:

name: Portal-Publishing-Pipeline

on:
  pull_request:
    branches:
      - master

jobs:
  publish:
    runs-on: ubuntu-latest
    env:
      AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
      AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
      AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
    steps:
      - name: Checkout code
        uses: actions/checkout@v5

      - name: Set up Node.js
        uses: actions/setup-node@v5
        with:
          node-version: '20.x'

      - name: Install dependencies
        run: npm install

      - name: Run publishing
        run: npm run publish

Respective documentation will be published soon.

@azaslonov azaslonov merged commit 1d1aed2 into master Oct 10, 2025
5 of 8 checks passed
@azaslonov azaslonov deleted the az/fixes-10-9-2 branch October 10, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants