diff --git a/.github/workflows/basic_checks.yml b/.github/workflows/basic_checks.yml index 0df1123..524f350 100644 --- a/.github/workflows/basic_checks.yml +++ b/.github/workflows/basic_checks.yml @@ -17,7 +17,7 @@ steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -60,7 +60,7 @@ steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -81,7 +81,7 @@ steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -111,7 +111,7 @@ steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -155,7 +155,7 @@ steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - uses: actions/setup-python@v2 @@ -184,7 +184,7 @@ steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -210,7 +210,7 @@ steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: cmake build @@ -237,7 +237,7 @@ steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/.github/workflows/docker_management.branch.yml b/.github/workflows/docker_management.branch.yml index 45881b2..0556ca6 100644 --- a/.github/workflows/docker_management.branch.yml +++ b/.github/workflows/docker_management.branch.yml @@ -35,7 +35,7 @@ - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -117,7 +117,7 @@ - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Build docker containers @@ -164,7 +164,7 @@ - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Find DEV DOCKER DIGEST @@ -178,7 +178,7 @@ # development branch of blinky - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: ARMmbed/mbed-os-example-blinky path: mbed-os-example-blinky diff --git a/.github/workflows/docker_management.prune.yml b/.github/workflows/docker_management.prune.yml index 56814e0..cf48e97 100644 --- a/.github/workflows/docker_management.prune.yml +++ b/.github/workflows/docker_management.prune.yml @@ -13,7 +13,7 @@ steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Delete old temporary images @@ -22,4 +22,4 @@ # deletion if only one image exists or if DOCKER_MANAGEMENT_TOKEN is not # setup. This shouldn't create any alarm as temporary image deletion is # not a critical activity. - python ./.github/workflows/ci_scripts/ghcr_utils.py -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_MANAGEMENT_TOKEN }} delete-old-images -r mbed-os-env-tmp || true \ No newline at end of file + python ./.github/workflows/ci_scripts/ghcr_utils.py -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_MANAGEMENT_TOKEN }} delete-old-images -r mbed-os-env-tmp || true diff --git a/.github/workflows/docker_management.release.yml b/.github/workflows/docker_management.release.yml index 809ac86..7ab0ce6 100644 --- a/.github/workflows/docker_management.release.yml +++ b/.github/workflows/docker_management.release.yml @@ -24,7 +24,7 @@ steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -134,7 +134,7 @@ - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: refs/tags/${{ steps.build_info.outputs.MBED_OS_VERSION }} @@ -198,7 +198,7 @@ # development branch of blinky - name: Checkout example blinky - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: ARMmbed/mbed-os-example-blinky path: mbed-os-example-blinky @@ -224,7 +224,7 @@ - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: refs/tags/${{ steps.build_info.outputs.MBED_OS_VERSION }} path: mbed-os-example-blinky/mbed-os diff --git a/.github/workflows/docker_management.test-PR.yml b/.github/workflows/docker_management.test-PR.yml index d41391a..7951a63 100644 --- a/.github/workflows/docker_management.test-PR.yml +++ b/.github/workflows/docker_management.test-PR.yml @@ -34,7 +34,7 @@ # for PR tests, development branch of blinky is used - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: ARMmbed/mbed-os-example-blinky path: mbed-os-example-blinky @@ -49,7 +49,7 @@ - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: mbed-os-example-blinky/mbed-os diff --git a/.github/workflows/greentea_cmake.yml b/.github/workflows/greentea_cmake.yml index f98921a..fc075dc 100644 --- a/.github/workflows/greentea_cmake.yml +++ b/.github/workflows/greentea_cmake.yml @@ -8,7 +8,7 @@ container: ghcr.io/armmbed/mbed-os-env:master-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install the latest mbed-tools run: | diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f0ac022..69b2b6f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,8 +7,13 @@ runs-on: ubuntu-latest steps: + - name: Work around https://github.com/actions/checkout/issues/766 + run: | + cd "${GITHUB_WORKSPACE}" || exit 1 + git config --global --add safe.directory "$GITHUB_WORKSPACE" + - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Python environment uses: actions/setup-python@v2 @@ -16,7 +21,7 @@ python-version: 3.8 - name: Checkout mbed-os-scripts repo (This repo is currently private) - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: ARMmbed/mbed-os-ci-scripts token: ${{ secrets.ISSUE_TRIAGING_PERMS }} diff --git a/.github/workflows/run_conditional_ble_feature_compilation.yml b/.github/workflows/run_conditional_ble_feature_compilation.yml index e93a01f..931efda 100644 --- a/.github/workflows/run_conditional_ble_feature_compilation.yml +++ b/.github/workflows/run_conditional_ble_feature_compilation.yml @@ -11,7 +11,7 @@ container: mbedos/mbed-os-env:latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: mbed-os diff --git a/.github/workflows/test_building_multiple_executables.yml b/.github/workflows/test_building_multiple_executables.yml index 09d3a5a..b40a3a0 100644 --- a/.github/workflows/test_building_multiple_executables.yml +++ b/.github/workflows/test_building_multiple_executables.yml @@ -8,7 +8,7 @@ container: ghcr.io/armmbed/mbed-os-env:master-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Build the multiple_executables example run: |