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-09-11 11:00:59 +02:00
|
|
|
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
|
2024-03-21 16:21:39 +01:00
|
|
|
with:
|
|
|
|
egress-policy: audit
|
|
|
|
|
2024-10-24 10:18:03 +02:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2023-12-08 14:37:32 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
2024-11-13 09:42:13 +01:00
|
|
|
- uses: sonarsource/sonarqube-scan-action@94d4f8ac4aaefccd7fb84bff00b0aeb2d65fcd49 # master
|
2023-12-08 14:37:32 +01:00
|
|
|
env:
|
|
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
|
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|