2023-12-15 16:35:41 +01:00
|
|
|
# SPDX-FileCopyrightText: 2023 Winni Neessen <wn@neessen.dev>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2023-12-08 14:37:32 +01:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
2024-03-21 16:21:39 +01:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2023-12-08 14:37:32 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions: read-all
|
|
|
|
steps:
|
2024-03-21 16:21:39 +01:00
|
|
|
- name: Harden Runner
|
2024-06-10 10:58:30 +02:00
|
|
|
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
|
2024-03-21 16:21:39 +01:00
|
|
|
with:
|
|
|
|
egress-policy: audit
|
|
|
|
|
2024-06-13 10:13:29 +02:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2023-12-08 14:37:32 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
2024-07-03 10:32:23 +02:00
|
|
|
- uses: sonarsource/sonarqube-scan-action@aecaf43ae57e412bd97d70ef9ce6076e672fe0a9 # master
|
2023-12-08 14:37:32 +01:00
|
|
|
env:
|
|
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
|
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|