Skip to content

Commit 0a38dda

Browse files
authored
use released shared workflow (#45)
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
1 parent 6ca40de commit 0a38dda

1 file changed

Lines changed: 4 additions & 40 deletions

File tree

.github/workflows/codeql.yaml

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -8,50 +8,14 @@ on:
88
schedule:
99
- cron: '38 11 * * 3'
1010

11+
permissions: {}
12+
1113
jobs:
1214
analyze:
13-
name: Analyze (${{ matrix.language }})
14-
runs-on: ubuntu-latest
15+
name: Analyze
16+
uses: anchore/workflows/.github/workflows/codeql.yaml@e8cee3a5916cebb68cda68b54c180f43394c1910 # v0.5.0
1517
permissions:
1618
security-events: write
1719
packages: read
1820
actions: read
1921
contents: read
20-
21-
strategy:
22-
fail-fast: false
23-
matrix:
24-
include:
25-
- language: actions
26-
build-mode: none
27-
28-
- language: go
29-
build-mode: manual
30-
31-
steps:
32-
- name: Checkout repository
33-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
34-
with:
35-
persist-credentials: false
36-
37-
- name: Setup Go
38-
if: matrix.language == 'go'
39-
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
40-
with:
41-
go-version-file: go.mod
42-
43-
- name: Initialize CodeQL
44-
uses: github/codeql-action/init@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3
45-
with:
46-
languages: ${{ matrix.language }}
47-
build-mode: ${{ matrix.build-mode }}
48-
49-
- name: Build (Go)
50-
if: matrix.build-mode == 'manual'
51-
shell: bash
52-
run: go build ./...
53-
54-
- name: Perform CodeQL Analysis
55-
uses: github/codeql-action/analyze@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3
56-
with:
57-
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)