From 7ef92a181b191a51545e819f6960ce6681c8646b Mon Sep 17 00:00:00 2001 From: hugoalh Date: Tue, 12 Nov 2024 12:34:14 +0800 Subject: [PATCH] Update workflow --- .github/workflows/invoke-codeql-analysis.yml | 8 ++++---- .github/workflows/invoke-devskim-analysis.yml | 6 +++--- .github/workflows/publish-docker-image.yml | 12 ++++++------ .github/workflows/review-deno-code.yml | 8 ++++---- .github/workflows/scan-virus.yml | 2 +- .github/workflows/sync-labels.yml | 4 ++-- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/invoke-codeql-analysis.yml b/.github/workflows/invoke-codeql-analysis.yml index ca64373a..6b72747c 100644 --- a/.github/workflows/invoke-codeql-analysis.yml +++ b/.github/workflows/invoke-codeql-analysis.yml @@ -22,16 +22,16 @@ jobs: runs-on: "ubuntu-latest" steps: - name: "Checkout Repository" - uses: "actions/checkout@v4.2.2" + uses: "actions/checkout@v4" with: fetch-depth: "0" - name: "Initialize CodeQL" - uses: "github/codeql-action/init@v3.27.0" + uses: "github/codeql-action/init@v3" with: queries: "+security-and-quality" # Automatically build attempts to build any compiled languages. - name: "Build Repository" - uses: "github/codeql-action/autobuild@v3.27.0" + uses: "github/codeql-action/autobuild@v3" continue-on-error: true - name: "Analyze Repository" - uses: "github/codeql-action/analyze@v3.27.0" + uses: "github/codeql-action/analyze@v3" diff --git a/.github/workflows/invoke-devskim-analysis.yml b/.github/workflows/invoke-devskim-analysis.yml index 9bba298e..66c2c83d 100644 --- a/.github/workflows/invoke-devskim-analysis.yml +++ b/.github/workflows/invoke-devskim-analysis.yml @@ -22,15 +22,15 @@ jobs: runs-on: "ubuntu-latest" steps: - name: "Checkout Repository" - uses: "actions/checkout@v4.2.2" + uses: "actions/checkout@v4" with: fetch-depth: "0" - name: "Analyze Repository" - uses: "microsoft/DevSkim-Action@v1.0.14" + uses: "microsoft/DevSkim-Action@v1" with: should-scan-archives: "true" ignore-globs: "**/.git/**" - name: "Upload Analysis Result" - uses: "github/codeql-action/upload-sarif@v3.27.0" + uses: "github/codeql-action/upload-sarif@v3" with: sarif_file: "devskim-results.sarif" diff --git a/.github/workflows/publish-docker-image.yml b/.github/workflows/publish-docker-image.yml index 200b87db..da62d94f 100644 --- a/.github/workflows/publish-docker-image.yml +++ b/.github/workflows/publish-docker-image.yml @@ -27,20 +27,20 @@ jobs: runs-on: "ubuntu-latest" steps: - name: "Checkout Repository" - uses: "actions/checkout@v4.2.2" + uses: "actions/checkout@v4" - name: "Setup Docker QEMU" - uses: "docker/setup-qemu-action@v3.2.0" + uses: "docker/setup-qemu-action@v3" - name: "Setup Docker Buildx" - uses: "docker/setup-buildx-action@v3.7.1" + uses: "docker/setup-buildx-action@v3" - name: "Sign In To GitHub Packages" - uses: "docker/login-action@v3.3.0" + uses: "docker/login-action@v3" with: registry: "ghcr.io" username: "${{github.actor}}" password: "${{secrets.GITHUB_TOKEN}}" - name: "Resolve Metadata" id: "metadata" - uses: "docker/metadata-action@v5.5.1" + uses: "docker/metadata-action@v5" with: images: |- name=ghcr.io/${{github.repository}} @@ -57,7 +57,7 @@ jobs: org.opencontainers.image.title=Send Discord Webhook (GitHub Action) Image org.opencontainers.image.description=A Docker image for Send Discord Webhook (GitHub Action) to send Discord webhook. - name: "Build & Publish Docker Image" - uses: "docker/build-push-action@v6.9.0" + uses: "docker/build-push-action@v6" with: context: "./" file: "Dockerfile" diff --git a/.github/workflows/review-deno-code.yml b/.github/workflows/review-deno-code.yml index 0c91bf4f..7c93e2e3 100644 --- a/.github/workflows/review-deno-code.yml +++ b/.github/workflows/review-deno-code.yml @@ -30,9 +30,9 @@ jobs: CDV_RUN_LITE: "${{matrix.runon != 'ubuntu-latest'}}" steps: - name: "Checkout Repository" - uses: "actions/checkout@v4.2.2" + uses: "actions/checkout@v4" - name: "Setup Deno" - uses: "denoland/setup-deno@v2.0.1" + uses: "denoland/setup-deno@v2" with: deno-version: "^2.0.0" - name: "Get Deno Cache Path" @@ -44,7 +44,7 @@ jobs: Add-Content -LiteralPath $Env:GITHUB_OUTPUT -Value "value=$($DenoInfo.denoDir)" -Confirm:$False -Encoding 'UTF8NoBOM' - name: "Restore Deno Cache" id: "deno-cache-restore" - uses: "actions/cache/restore@v4.1.2" + uses: "actions/cache/restore@v4" with: key: "Deno/${{runner.os}}-${{github.run_id}}-${{github.run_attempt}}-${{github.job}}" restore-keys: |- @@ -142,7 +142,7 @@ jobs: npm publish --dry-run - name: "Save Deno Cache" if: "${{!cancelled() && steps.deno-cache-restore.outcome == 'success'}}" - uses: "actions/cache/save@v4.1.2" + uses: "actions/cache/save@v4" with: key: "Deno/${{runner.os}}-${{github.run_id}}-${{github.run_attempt}}-${{github.job}}" path: "${{steps.deno-cache-path.outputs.value}}" diff --git a/.github/workflows/scan-virus.yml b/.github/workflows/scan-virus.yml index 126b450a..0d09c32f 100644 --- a/.github/workflows/scan-virus.yml +++ b/.github/workflows/scan-virus.yml @@ -42,7 +42,7 @@ jobs: runs-on: "ubuntu-latest" steps: - name: "Checkout Repository" - uses: "actions/checkout@v4.2.2" + uses: "actions/checkout@v4" with: fetch-depth: "0" - name: "Scan Repository" diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 1542fe27..43bf16cd 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -16,9 +16,9 @@ jobs: runs-on: "ubuntu-latest" steps: - name: "Checkout Repository" - uses: "actions/checkout@v4.2.2" + uses: "actions/checkout@v4" - name: "Sync Labels" - uses: "EndBug/label-sync@v2.3.3" + uses: "EndBug/label-sync@v2" with: config-file: ".github/labels.yml" delete-other-labels: "true"