Skip to content

Commit 914bd66

Browse files
Update release.yml
1 parent bf59d85 commit 914bd66

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,33 @@ permissions:
99
contents: write
1010

1111
jobs:
12+
# JOB 1 : Analyse de code sur Linux (Docker est supporté ici)
1213
sonar-scan:
1314
runs-on: ubuntu-latest
1415
steps:
1516
- name: Checkout code
16-
uses: actions/checkout@v4
17+
# Utilisation du hash SHA pour actions/checkout@v4
18+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
1719
with:
18-
fetch-depth: 0
20+
fetch-depth: 0
21+
1922
- name: SonarCloud Scan
20-
uses: SonarSource/sonarcloud-github-action@v3.1.0
23+
# Utilisation du hash SHA pour SonarSource/sonarcloud-github-action
24+
uses: SonarSource/sonarcloud-github-action@400171a1b051c0595b433390d4da511654e6074a
2125
env:
2226
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2327
SONAR_TOKEN: ${{ secrets.BULK_FOLDER_SCAN }}
2428

29+
# JOB 2 : Build de l'exécutable sur Windows
2530
build:
26-
needs: sonar-scan
31+
needs: sonar-scan # Le build ne démarre QUE si le scan Sonar réussit
2732
runs-on: windows-latest
2833
steps:
2934
- name: Checkout code
30-
uses: actions/checkout@v4
35+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
3136

3237
- name: Set up Python
33-
uses: actions/setup-python@v5
38+
uses: actions/setup-python@82c3513126846c7546603a12903780360a5d2188
3439
with:
3540
python-version: '3.11'
3641

@@ -81,7 +86,7 @@ jobs:
8186
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /DMyAppVersion=$ver "installer_script.iss"
8287
8388
- name: Create Release
84-
uses: softprops/action-gh-release@v1
89+
uses: softprops/action-gh-release@de2c5731105a9687dd2b1f4021029c29c8e5e8a6
8590
with:
8691
tag_name: v${{ steps.get_version.outputs.VERSION }}
8792
name: Release v${{ steps.get_version.outputs.VERSION }}

0 commit comments

Comments
 (0)