Skip to content

Commit

Permalink
rework security
Browse files Browse the repository at this point in the history
  • Loading branch information
inetol committed Nov 3, 2024
1 parent c968fec commit f078b3b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 52 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/security.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI -> SonarCloud
on:
push:
branches:
- dev

pull_request:
types:
- opened
- synchronize
- reopened

permissions: read-all

jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
permissions:
security-events: write
id-token: write

steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
fetch-depth: 0

- name: Analyze
uses: SonarSource/sonarcloud-github-action@383f7e52eae3ab0510c3cb0e7d9d150bbaeab838 # v3.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit f078b3b

Please sign in to comment.