Open Closed

Build git action license issue on docker #10007


User avatar
0
andmattia created

abp 7, 4 ,5

How can i user access-token.bin on git action???


1 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent

    To use the ABP access-token.bin for licensing in a GitHub Actions (or any CI/CD) Docker build, you need to copy the access-token.bin file into the container so the ABP licensing system can find it. Here’s a step-by-step solution:

    1. Generate or obtain your access-token.bin file by logging in with the ABP CLI on your local machine:
    abp login <username>
    

    This will create the file at:
    ~/.abp/cli/access-token.bin (Linux/macOS)
    or
    %USERPROFILE%\.abp\cli\access-token.bin (Windows)

    1. Add the access-token.bin file to your repository as a GitHub Actions secret (for example, as a base64-encoded string).

    2. In your GitHub Actions workflow, decode the secret and write it to a file before building the Docker image:

    - name: Decode ABP access token
         run: |
           echo "${{ secrets.ABP_ACCESS_TOKEN_BIN }}" | base64 -d > access-token.bin
    
    1. Update your Dockerfile to copy the access-token.bin into the correct location inside the container:
    RUN mkdir -p /root/.abp/cli
       COPY access-token.bin /root/.abp/cli/access-token.bin
    
    1. Build your Docker image as usual. The ABP licensing check will now succeed inside the container.

    This approach is confirmed as the solution for running ABP commercial modules in Docker and CI/CD environments.

    Sources:

    • https://abp.io/support/questions/9263
    • https://abp.io/support/questions/6663
    • https://abp.io/support/questions/6508

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on October 17, 2025, 13:15