Skip to content

Merge pull request #70 from mdpadberg/68-reusable-workflows #2

Merge pull request #70 from mdpadberg/68-reusable-workflows

Merge pull request #70 from mdpadberg/68-reusable-workflows #2

Workflow file for this run

name: run clippy github action
on:
workflow_call:
secrets:
GITHUB_TOKEN:

Check failure on line 6 in .github/workflows/clippy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/clippy.yml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: true
jobs:
clippy:
name: run clippy github action
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Install Rust with cargo
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Restore cargo cache
uses: Swatinem/rust-cache@v2
with:
shared-key: ubuntu-latest-x86_64-unknown-linux-gnu
- uses: giraffate/clippy-action@v1
with:
reporter: 'github-pr-review'
github_token: ${{ secrets.GITHUB_TOKEN }}