File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This file is part of Dependency-Track.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+ #
15+ # SPDX-License-Identifier: Apache-2.0
16+ # Copyright (c) OWASP Foundation. All Rights Reserved.
17+ name : Build
18+
19+ on :
20+ pull_request :
21+ branches : [main]
22+
23+ permissions : {}
24+
25+ jobs :
26+ build :
27+ name : Build
28+ runs-on : ubuntu-latest
29+ steps :
30+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
31+ with :
32+ persist-credentials : false
33+ - name : Install imaging dependencies
34+ run : |
35+ sudo apt-get update
36+ sudo apt-get install -y --no-install-recommends \
37+ libcairo2-dev \
38+ libffi-dev \
39+ libfreetype6-dev \
40+ libjpeg-dev \
41+ libpng-dev \
42+ libz-dev
43+ - uses : astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
44+ with :
45+ enable-cache : false
46+ - name : Build
47+ run : make build
Original file line number Diff line number Diff line change 1414#
1515# SPDX-License-Identifier: Apache-2.0
1616# Copyright (c) OWASP Foundation. All Rights Reserved.
17- name : docs
17+ name : Deploy
1818
1919on :
2020 push :
2121 branches : [main]
2222 tags : ["[0-9]+.[0-9]+.[0-9]+", "[0-9]+.[0-9]+.[0-9]+-*"]
23- pull_request :
24- branches : [main]
2523
2624permissions : {}
2725
2826jobs :
29- lint :
30- runs-on : ubuntu-latest
31- if : github.event_name == 'pull_request'
32- steps :
33- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
34- with :
35- persist-credentials : false
36- - name : Install imaging dependencies
37- run : |
38- sudo apt-get update
39- sudo apt-get install -y --no-install-recommends \
40- libcairo2-dev libfreetype6-dev libffi-dev \
41- libjpeg-dev libpng-dev libz-dev
42- - uses : astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
43- with :
44- enable-cache : false
45- - name : Lint Markdown
46- run : make lint-markdown
47- - name : Lint YAML
48- run : make lint-yaml
49- - name : Lint prose
50- run : make lint-prose
51- - name : Lint Python
52- run : make lint-python
53- - name : Build
54- run : make build
55-
5627 deploy :
28+ name : Deploy
5729 runs-on : ubuntu-latest
58- if : github.event_name == 'push'
5930 permissions :
6031 contents : write
6132 env :
7647 run : |
7748 sudo apt-get update
7849 sudo apt-get install -y --no-install-recommends \
79- libcairo2-dev libfreetype6-dev libffi-dev \
80- libjpeg-dev libpng-dev libz-dev
50+ libcairo2-dev \
51+ libffi-dev \
52+ libfreetype6-dev \
53+ libjpeg-dev \
54+ libpng-dev \
55+ libz-dev
8156 - uses : astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
8257 with :
8358 enable-cache : false
Original file line number Diff line number Diff line change 1414#
1515# SPDX-License-Identifier: Apache-2.0
1616# Copyright (c) OWASP Foundation. All Rights Reserved.
17- name : zizmor
17+ name : Lint
1818
1919on :
20- push :
21- branches : [main]
2220 pull_request :
23- branches : ["**" ]
21+ branches : [main ]
2422
2523permissions : {}
2624
2725jobs :
28- zizmor :
26+ lint-docs :
27+ name : Lint Docs
28+ runs-on : ubuntu-latest
29+ steps :
30+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
31+ with :
32+ persist-credentials : false
33+ - name : Lint Markdown
34+ run : make lint-markdown
35+ - name : Lint prose
36+ run : make lint-prose
37+ - name : Lint YAML
38+ run : make lint-yaml
39+
40+ lint-gha :
41+ name : Lint GitHub Actions
2942 runs-on : ubuntu-latest
3043 permissions :
3144 security-events : write
You can’t perform that action at this time.
0 commit comments