mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/1Panel-dev/1Panel.git
synced 2026-09-20 08:03:55 +08:00
Pin the third-party actions referenced by mutable @master/@main tags to their current commit SHA (tag kept in a trailing comment). Several run in jobs holding secrets: - SonarSource/sonarcloud-github-action@master (sonarcloud-scan.yml) — SONAR_TOKEN - Yikun/hub-mirror-action@master (sync2gitee.yml) — GITEE_PRIVATE_KEY, GITEE_TOKEN - fit2cloud/LLM-CodeReview-Action@main (llm-code-review.yml) — tokens + LLM API key - crate-ci/typos@master (tyops-check.yml) A moved tag would run unreviewed code with those secrets. Behaviour unchanged; per GitHub's guidance to pin actions to a full-length commit SHA. Signed-off-by: Kobi Hikri <kobi.hikri@gmail.com>
21 lines
564 B
YAML
21 lines
564 B
YAML
name: SonarCloud Scan
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
jobs:
|
|
sonarcloud:
|
|
name: SonarCloud
|
|
if: github.repository == '1Panel-dev/1Panel'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: SonarCloud Scan
|
|
uses: SonarSource/sonarcloud-github-action@ba3875ecf642b2129de2b589510c81a8b53dbf4e # master
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |