Skip to content

Bump actions/github-script from 3 to 7 #214

Bump actions/github-script from 3 to 7

Bump actions/github-script from 3 to 7 #214

Workflow file for this run

name: Accessibility scan
on:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
scan-action:
runs-on: ubuntu-latest
name: Scan for accessibility issues
steps:
- name: Checkout
uses: actions/checkout@v4
# This action requires Node 20
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Scan site
id: scan
uses: ./
with:
# Required:
url: "https://www.washington.edu/accesscomputing/AU/before.html"
# Optional:
baselineFile: ${{ github.workspace }}/samples/site.baseline
# Optional: upload the report as an artifact
- name: Upload report as artifact
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: "Accessibility report"
path: ${{ github.workspace }}/_accessibility-reports/index.html
# Optional: post a comment on the pull request with the summary report
- uses: actions/github-script@v7
if: github.event_name == 'pull_request'
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `${{ steps.scan.outputs['summary-report'] }}`
})