Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github: more authorised token for annotations #780

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2024, Proofcraft Pty Ltd
#
# SPDX-License-Identifier: BSD-2-Clause

# Theory Linter action

name: Lint

# needs pull_request_target trigger for more authority on GITHUB_TOKEN when PR
# originates on a fork
on: [pull_request_target]

jobs:
thylint:
name: 'Theory Linter'
runs-on: ubuntu-latest
steps:
- uses: seL4/ci-actions/thylint@master
with:
token: ${{ secrets.READ_TOKEN }}
pr_num: ${{ github.event.pull_request.number }}
- uses: yuzutech/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
title: 'File annotations for theory linter'
input: './annotations.json'
continue-on-error: true
if: always()
18 changes: 0 additions & 18 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,3 @@ jobs:
- uses: seL4/ci-actions/style@master
with:
token: ${{ secrets.READ_TOKEN }}

thylint:
name: 'Theory Linter'
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
steps:
- uses: seL4/ci-actions/thylint@master
with:
token: ${{ secrets.READ_TOKEN }}
- uses: yuzutech/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
title: 'File annotations for theory linter'
input: './annotations.json'
continue-on-error: true
if: always()
Loading