Skip to content

Commit 2cfb28c

Browse files
committed
Remove permissions from GHA workspace level
Only override per job if necessary
1 parent d457784 commit 2cfb28c

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

‎.github/workflows/maven.yml‎

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,6 @@ on:
1212
- main
1313
types: [opened, synchronize, reopened]
1414

15-
# restrict privileges except for setting commit status, adding PR comments and writing statuses
16-
permissions:
17-
actions: read
18-
checks: write
19-
contents: read
20-
deployments: read
21-
issues: read
22-
packages: read
23-
pull-requests: write
24-
repository-projects: read
25-
security-events: read
26-
statuses: write
27-
2815
jobs:
2916
build:
3017
strategy:
@@ -67,7 +54,7 @@ jobs:
6754
if [ "${{ matrix.isMainBuildEnv }}" = "true" ]; then
6855
echo "MVN_ADDITIONAL_OPTS=-Dsonar.projectKey=Netcentric_aem-clientlib-validator -Dsonar.organization=netcentric -Dsonar.host.url=https://sonarcloud.io -Pjacoco-report" >> $GITHUB_ENV
6956
if [ "${{github.ref}}" = "refs/heads/main" ] && [ "${{github.event_name}}" = "push" ]; then
70-
echo "MVN_GOAL=clean deploy org.sonarsource.scanner.maven:sonar-maven-plugin:sonar" >> $GITHUB_ENV
57+
echo "MVN_GOAL=clean deploy org.sonarsource.scanner.maven:sonar-maven-plugin:5.8.0.7211:sonar" >> $GITHUB_ENV
7158
echo "STEP_NAME_SUFFIX=(Deploys to Central Portal)" >> $GITHUB_ENV
7259
else
7360
echo "MVN_GOAL=clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:5.8.0.7211:sonar" >> $GITHUB_ENV

0 commit comments

Comments
 (0)