chore: remove createComment(), depends on githubToken scopes

This commit is contained in:
Harm Weites 2022-03-31 14:17:52 +02:00
parent 724e05f46b
commit 2faf5c6ef4
No known key found for this signature in database
GPG key ID: 512F961398DC5619

View file

@ -81,26 +81,6 @@ jobs:
# This step will never fail, but will print out the results from step5
run: echo "${{ steps.hadolint5.outputs.results }}"
- name: Update Pull Request
uses: actions/github-script@v6
if: github.event_name == 'pull_request'
with:
script: |
const output = `
#### Hadolint: \`${{ steps.hadolint5.outcome }}\`
_output from integration test 5_
\`\`\`
${process.env.HADOLINT_RESULTS}
\`\`\`
`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})
#- name: Run integration test 6 - output to file
# # This step will never fail, but will print out rule violations.
# uses: ./