fix(modem): Harden AT library against command injection #1055
Workflow file for this run
This file contains hidden or 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: "esp_dns: build-tests" | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| types: [opened, synchronize, reopened, labeled] | |
| jobs: | |
| build_esp_dns: | |
| if: contains(github.event.pull_request.labels.*.name, 'dns') || github.event_name == 'push' | |
| name: Build | |
| strategy: | |
| matrix: | |
| idf_ver: ["latest", "release-v5.1", "release-v5.2", "release-v5.3", "release-v5.4"] | |
| idf_target: ["esp32"] | |
| test: [ { app: esp_dns_basic, path: "components/esp_dns/examples"}] | |
| include: | |
| - idf_ver: "latest" | |
| warning: "the choice symbol ETHERNET_PHY_LAN867X\nis deprecated: Please use smi_gpio instead" | |
| runs-on: ubuntu-22.04 | |
| container: espressif/idf:${{ matrix.idf_ver }} | |
| steps: | |
| - name: Checkout esp-protocols | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Build ${{ matrix.test.app }} with IDF-${{ matrix.idf_ver }} for ${{ matrix.idf_target }} | |
| env: | |
| EXPECTED_WARNING: ${{ matrix.warning }} | |
| shell: bash | |
| working-directory: ${{matrix.test.path}} | |
| run: | | |
| if [[ "${{ matrix.idf_ver }}" == "release-v5.3" || "${{ matrix.idf_ver }}" == "release-v5.4" ]]; then | |
| export EXPECTED_WARNING="unknown kconfig symbol 'LWIP_USE_ESP_GETADDRINFO'" | |
| fi | |
| . ${IDF_PATH}/export.sh | |
| pip install idf-component-manager idf-build-apps --upgrade | |
| python ../../../ci/build_apps.py ./${{ matrix.test.app }} --target ${{ matrix.idf_target }} -vv --preserve-all --pytest-app |