Update SonarSource/sonarcloud-github-action digest to ffc3010 #744
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A workflow that tests this action | |
name: CI test workflow | |
on: | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
permissions: | |
pull-requests: write | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Run the CI tests | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@41d3351872a2104cca2e1c0c05eae533d14f3967 | |
with: | |
egress-policy: block | |
disable-telemetry: true | |
allowed-endpoints: > | |
api.github.com:443 | |
auth.docker.io:443 | |
deb.debian.org:80 | |
github.com:443 | |
production.cloudflare.docker.com:443 | |
registry-1.docker.io:443 | |
registry.npmjs.org:443 | |
security.debian.org:80 | |
- name: Checkout | |
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2 | |
- name: Run test scripts | |
working-directory: ${{ github.workspace }} | |
id: test | |
shell: bash | |
run: | | |
chmod +x "test/test.sh" | |
rm -f "test/test-*.txt" | |
bash test/test.sh > test/test-result.txt | |
echo "test-result=$(grep "Test result:" ${{ github.workspace }}/test/test-result.txt)" >>"$GITHUB_OUTPUT" | |
continue-on-error: true | |
- name: Read test details file. | |
id: details | |
uses: juliangruber/read-file-action@bf93cb4f799776f9a7db2a3d7133094d480f1d4d | |
with: | |
path: ${{ github.workspace }}/test/test-outputs.txt | |
- name: Update test script comment on PR under test | |
if: github.event_name == 'pull_request' && ( ${{ success() }} || ${{ failure() }} ) | |
uses: thollander/actions-comment-pull-request@e4a76dd2b0a3c2027c3fd84147a67c22ee4c90fa | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
message: | | |
Testing script results from test/test.sh | |
${{ steps.test.outputs.test-result }} | |
<details><summary>Test script outputs from test/test.sh</summary> | |
<p> | |
${{ steps.details.outputs.content }} | |
</p> | |
</details> |