Skip to content

Commit

Permalink
Add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
henryju committed Jul 2, 2024
1 parent b7db43e commit fb7834d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,11 @@ jobs:
with:
args: -Dsonar.login=admin -Dsonar.password=admin
projectBaseDir: ./test/example-project
- name: Check permissions after
run: ls -al ${{ github.workspace }}/.sonar/cache
- name: Check permissions after 1
run: ls -al ${{ github.workspace }}
- name: Check permissions after 2
run: ls -al ${{ github.workspace }}/.sonar/cache
- name: Check permissions after 3
run: ls -al ${{ github.workspace }}/.sonar/cache/afd2e4de60ea352505e8dc75fbb1cefc/sonar-php-plugin.jar_unzip
- name: Assert
run: |
Expand Down
2 changes: 2 additions & 0 deletions cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ if [ ! -d "${INPUT_PROJECTBASEDIR%/}/.scannerwork" ]; then
fi

_tmp_file=$(ls "${INPUT_PROJECTBASEDIR%/}/" | head -1)
echo "Reading permissions from $_tmp_file"
PERM=$(stat -c "%u:%g" "${INPUT_PROJECTBASEDIR%/}/$_tmp_file")

echo "Applying permissions $PERM to all files in the .scannerwork directory"
chown -R $PERM "${INPUT_PROJECTBASEDIR%/}/.scannerwork/"

0 comments on commit fb7834d

Please sign in to comment.