Skip to content

Permit GitHub Actions Workflow #23

Permit GitHub Actions Workflow

Permit GitHub Actions Workflow #23

Workflow file for this run

name: Audit
on: [ pull_request, push ]
permissions:
actions: read
checks: read
contents: read
deployments: read
id-token: read

Check failure on line 8 in .github/workflows/audit.yml

View workflow run for this annotation

GitHub Actions / Audit

Invalid workflow file

The workflow is not valid. .github/workflows/audit.yml (Line: 8, Col: 13): Unexpected value 'read'
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
security-events: read
statuses: read
jobs:
audit:
runs-on: ubuntu-latest
# push: always run.
# pull_request: run only when the PR is submitted from a forked repository, not within this repository.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Audit
run: bundle exec ruby ./audit.rb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}