-
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (49 loc) · 1.29 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: Lint
on:
pull_request:
paths:
# Only run when changes are made to workflow files.
- '.github/workflows/**'
push:
branches:
- trunk
paths:
# Only run when changes are made to workflow files.
- '.github/workflows/**'
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
actionlint:
name: Actionlint
runs-on: ubuntu-24.04
permissions:
contents: read
timeout-minutes: 1
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run actionlint
uses: docker://rhysd/actionlint:latest
with:
args: "-color -verbose -shellcheck="
octoscan:
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run octoscan
id: octoscan
uses: synacktiv/action-octoscan@v1
- name: Upload SARIF file to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: "${{steps.octoscan.outputs.sarif_output}}"
category: octoscan