Skip to content
aliyun

GitHub Action

Alibaba Cloud Container Registry (ACR) Image Scan

v1 Latest version
Use latest version
aliyun

Alibaba Cloud Container Registry (ACR) Image Scan

Scan image in container registry

Installation

Copy and paste the following snippet into your .yml file.

- name: Alibaba Cloud Container Registry (ACR) Image Scan
  uses: aliyun/[email protected]
Learn more about this action in aliyun/acr-scan
Choose a version

Scan Docker images in Alibaba Cloud Container Registry

Use this GitHub Action to scan Docker images in Alibaba Cloud Container Registry.

Scan image in ACR default instance

- uses: aliyun/[email protected]
  with:
    region-id: '<region id>' # example: cn-hangzhou
    access-key-id: '<access key id>'
    access-key-secret: '<access key secret>'
    repository: '<repository>' # example: test/nginx
    tag: '<tag>' # example: latest

Or scan image in specific ACR EE instance

- uses: aliyun/[email protected]
  with:
    region-id: '<region id>' # example: cn-hangzhou
    access-key-id: '<access key id>'
    access-key-secret: '<access key secret>'
    instance-id: '<registry instance id>'
    repository: '<repository>' # example: test/nginx
    tag: '<tag>' # example: latest

Refer to the action metadata file for details about all the inputs: action.yml

Prerequisite

Get the access-key-id and access-key-secret of Alibaba Cloud, and add them as secrets in the GitHub repository.