Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoalh committed Nov 12, 2024
1 parent 8bca353 commit 78542f3
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/invoke-codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.1"
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.1"
uses: "github/codeql-action/autobuild@v3"
continue-on-error: true
- name: "Analyze Repository"
uses: "github/codeql-action/analyze@v3.27.1"
uses: "github/codeql-action/analyze@v3"
6 changes: 3 additions & 3 deletions .github/workflows/invoke-devskim-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.1"
uses: "github/codeql-action/upload-sarif@v3"
with:
sarif_file: "devskim-results.sarif"
18 changes: 9 additions & 9 deletions .github/workflows/publish-deno-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
runs-on: "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"
Expand All @@ -26,7 +26,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: |-
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- name: "Save NPM Package Artifact"
id: "npm-artifact"
if: "${{!cancelled() && steps.metadata.outputs.npm-build == 'true' && steps.npm-build.outcome == 'success'}}"
uses: "actions/upload-artifact@v4.4.3"
uses: "actions/upload-artifact@v4"
with:
name: "npm-artifact"
path: "${{steps.metadata.outputs.npm-root}}"
Expand All @@ -79,7 +79,7 @@ jobs:
include-hidden-files: "true"
- 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}}"
Expand All @@ -99,12 +99,12 @@ jobs:
NODE_AUTH_TOKEN: "${{secrets.NPM_TOKEN}}"
steps:
- name: "Restore NPM Package Artifact"
uses: "actions/download-artifact@v4.1.8"
uses: "actions/download-artifact@v4"
with:
name: "npm-artifact"
path: "${{github.workspace}}"
- name: "Setup NodeJS"
uses: "actions/setup-node@v4.1.0"
uses: "actions/setup-node@v4"
with:
node-version: "lts/*"
check-latest: true
Expand All @@ -120,7 +120,7 @@ jobs:
Add-Content -LiteralPath $Env:GITHUB_OUTPUT -Value "value=$($NpmCachePath)" -Confirm:$False -Encoding 'UTF8NoBOM'
- name: "Restore NPM Cache"
id: "npm-cache-restore"
uses: "actions/cache/restore@v4.1.2"
uses: "actions/cache/restore@v4"
with:
key: "NPM/${{runner.os}}-${{github.run_id}}-${{github.run_attempt}}-${{github.job}}"
restore-keys: |-
Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
gh release upload '${{github.event.release.tag_name}}' '${{steps.metadata.outputs.ballname}}' --clobber --repo $Env:GITHUB_REPOSITORY
- name: "Save NPM Cache"
if: "${{!cancelled() && steps.npm-cache-restore.outcome == 'success'}}"
uses: "actions/cache/save@v4.1.2"
uses: "actions/cache/save@v4"
with:
key: "NPM/${{runner.os}}-${{github.run_id}}-${{github.run_attempt}}-${{github.job}}"
path: "${{steps.npm-cache-path.outputs.value}}"
8 changes: 4 additions & 4 deletions .github/workflows/review-deno-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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: |-
Expand Down Expand Up @@ -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}}"
2 changes: 1 addition & 1 deletion .github/workflows/scan-virus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 78542f3

Please sign in to comment.