Move ec2 tags function in pkg/util/ec2/tags #70722
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Run Go Mod Tidy And Generate Licenses" | |
on: | |
pull_request: | |
types: | |
- labeled | |
jobs: | |
mod_tidy_and_generate_licenses: | |
if: ${{ github.repository == 'DataDog/datadog-agent' && github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies-go') }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Install go | |
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
with: | |
go-version-file: ".go-version" | |
- name: Install python | |
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 | |
with: | |
python-version-file: .python-version | |
cache: "pip" | |
- name: Install dda | |
uses: ./.github/actions/install-dda | |
with: | |
features: legacy-tasks | |
- name: Go mod tidy | |
run: dda inv -e tidy | |
- name: Update LICENSE-3rdparty.csv | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies-go-tools') }} | |
run: | | |
dda inv -e install-tools | |
dda inv -e generate-licenses | |
- name: Update mocks | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies-go-tools') }} | |
run: dda inv -e security-agent.gen-mocks # generate both security agent and process mocks | |
- uses: stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 # v5.1.0 | |
id: autocommit | |
with: | |
commit_message: Auto-generate go.sum and LICENSE-3rdparty.csv changes | |
- name: changes | |
env: | |
CHANGES: ${{ steps.autocommit.outputs.changes_detected }} | |
run: | | |
echo "Changes detected: $CHANGES" |