# New depot/pull-action GitHub Action (https://depot.dev/changelog/2023-12-07-github-action)

> Published 2023-12-07

To go with our new ephemeral registry, we introduced a new [`depot/pull-action` GitHub Action](https://github.com/depot/pull-action) that can be used to pull an image into a workflow via a given build ID.

```yaml
permissions:
  contents: read
  id-token: write

steps:
  - uses: depot/setup-action@v1

  - uses: depot/build-push-action@v1
    id: image-build
    with:
      project: <your-depot-project-id>
      save: true

  - uses: depot/pull-action@v1
    with:
      build-id: ${{ steps.image-build.outputs.build-id }}
      tags: |
        org/report:tag
```

The `depot/build-push-action` has the build ID stored in its output. So you can use that output to pull the image into your workflow to run integration tests, deploy to a staging environment, or whatever else you need to do.

## For AI Agents

The full site index is at [llms.txt](https://depot.dev/llms.txt). Append `.md` to any documentation, blog, changelog, or customer URL to fetch its markdown source directly.