From af6b7f1094deaa17767d64ae2e271d474ac3fae7 Mon Sep 17 00:00:00 2001 From: Igor Date: Wed, 27 Mar 2024 07:57:12 +0100 Subject: [PATCH] Update external actions --- .github/workflows/git-trees-oras.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/git-trees-oras.yml b/.github/workflows/git-trees-oras.yml index b7e122f..8e85efb 100644 --- a/.github/workflows/git-trees-oras.yml +++ b/.github/workflows/git-trees-oras.yml @@ -9,7 +9,9 @@ jobs: git-trees: runs-on: ubuntu-latest - steps: + permissions: + actions: write + steps: - name: Free Github Runner uses: descriptinc/free-disk-space@main @@ -22,16 +24,18 @@ jobs: swap-storage: true - name: Docker Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} # GitHub username or org password: ${{ secrets.GITHUB_TOKEN }} # GitHub actions builtin token. repo has to have pkg access. - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - uses: gautamkrishnar/keepalive-workflow@v1 + - uses: gautamkrishnar/keepalive-workflow@v2 + with: + use_api: true - name: Test ORAS, Tokens, Logins, etc env: @@ -43,7 +47,7 @@ jobs: bash oras_upload.sh - name: Cache git worktree - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/workdir/kernel/worktree key: ${{ runner.os }}-kernel-worktree-${{ github.sha }} @@ -70,7 +74,6 @@ jobs: echo "::endgroup::" done - - name: Upload single complete tree to ghcr.io via ORAS env: TARGET_OCI: "ghcr.io/${{ github.repository }}/kernel-git:latest"