Skip to content

Update module github.com/containerd/containerd to v2 #25389

Update module github.com/containerd/containerd to v2

Update module github.com/containerd/containerd to v2 #25389

Workflow file for this run

---
name: "Add labels to PR"
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
- "[0-9]+.[0-9]+.x"
permissions: {}
jobs:
assign-team-label:
if: github.triggering_actor != 'dd-devflow[bot]' && github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Get GitHub token
uses: DataDog/dd-octo-sts-action@96a25462dbcb10ebf0bfd6e2ccc917d2ab235b9a # v1.0.4
id: octo-sts
with:
scope: DataDog/datadog-agent
policy: self.add-labels-pr.label-pr
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
sparse-checkout: |
.gitlab-ci.yml
.github/CODEOWNERS
.github/actions
.ddqa/config.toml
tasks
persist-credentials: false
- name: Install dda
uses: ./.github/actions/install-dda
with:
features: legacy-tasks
- name: Add the internal label
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
with:
github-token: ${{ steps.octo-sts.outputs.token }}
script: |
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: ${{ github.event.pull_request.number }},
labels: ['internal']
});
- name: Assign team label
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
GITHUB_TOKEN: ${{ steps.octo-sts.outputs.token }}
run: dda inv -- -e github.assign-team-label --pr-id="${PR_NUMBER}"