1
0
mirror of https://github.com/golangci/golangci-lint-action.git synced 2026-06-18 01:05:47 +07:00

chore: improve workflows (#1394)

This commit is contained in:
Ludovic Fernandez
2026-05-22 02:32:02 +02:00
committed by GitHub
parent 28d0a191bb
commit 97c8387e66
3 changed files with 37 additions and 52 deletions

View File

@@ -5,25 +5,21 @@ on:
branches:
- main
pull_request:
# The branches below must be a subset of the branches above
branches:
- main
schedule:
- cron: '0 17 * * 5'
permissions:
actions: read
contents: read
security-events: write
jobs:
codeQL:
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
# Must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head of the pull request.
@@ -39,7 +35,7 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4.35.4
uses: github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
# Override language selection by uncommenting this and choosing your languages
with:
languages: 'javascript-typescript'
@@ -49,4 +45,4 @@ jobs:
npm run all
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4.35.4
uses: github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4