chore(deps, cpp): update github.vscode-github-actions, github.vscode-pull-request-github, ms-vscode.cpptools, sonarsource.sonarlint-vscode in devcontainer.json #686
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: Cleanup Pull Request Images | |
| on: | |
| pull_request: | |
| types: [closed] | |
| permissions: {} | |
| jobs: | |
| delete-images: | |
| name: 🗑️ Delete PR Images | |
| runs-on: ubuntu-latest | |
| permissions: | |
| packages: write # is needed by dataaxiom/ghcr-cleanup-action to delete images | |
| steps: | |
| - uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 | |
| with: | |
| disable-sudo: true | |
| egress-policy: audit | |
| - uses: dataaxiom/ghcr-cleanup-action@cd0cdb900b5dbf3a6f2cc869f0dbb0b8211f50c4 # v1.0.16 | |
| with: | |
| delete-tags: pr-${{ github.event.pull_request.number }} | |
| packages: amp-devcontainer,amp-devcontainer-cpp,amp-devcontainer-rust | |
| cleanup-cache: | |
| name: 🧹 Cleanup Cache | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: write # is needed to delete workflow run caches | |
| steps: | |
| - uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 | |
| with: | |
| disable-sudo-and-containers: true | |
| egress-policy: audit | |
| - run: | | |
| gh extension install actions/gh-actions-cache | |
| ## Setting this to not fail the workflow while deleting cache keys. | |
| set +e | |
| for cacheKey in $(gh actions-cache list -R "${GH_REPO}" -B "${BRANCH}" | cut -f 1) | |
| do | |
| gh actions-cache delete "${cacheKey}" -R "${GH_REPO}" -B "${BRANCH}" --confirm | |
| done | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GH_REPO: ${{ github.repository }} | |
| BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge |