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-05-22 10:16:34 +02:00
|
|
|
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
|
2024-03-21 16:21:39 +01:00
|
|
|
with:
|
|
|
|
egress-policy: audit
|
|
|
|
|
2024-05-17 10:58:40 +02:00
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
2023-12-08 14:37:32 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
2024-05-24 10:13:20 +02:00
|
|
|
- uses: sonarsource/sonarqube-scan-action@86fe81775628f1c6349c28baab87881a2170f495 # master
|
2023-12-08 14:37:32 +01:00
|
|
|
env:
|
|
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
|
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|