A GitHub Action that reports pushes to your repository to APICURON, associating them with user ORCIDs
- Add Secrets to Repository:
- Go to Repository Settings → Secrets → Actions
- Add these required secrets:
REPORT_API_ENDPOINT
: APICURON report API URLREPORT_API_TOKEN
: APICURON API auth tokenUSER_INFO_SERVICE_ENDPOINT
: ORCID lookup service URLUSER_INFO_SERVICE_TOKEN
: ORCID service auth token
- Create Workflow File:
.github/workflows/apicuron-report.yml
name: APICURON Reporting on: [push] jobs: report: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Submit to APICURON uses: ./.github/actions/apicuron-on-commit with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} REPORT_API_ENDPOINT: ${{ secrets.REPORT_API_ENDPOINT }} REPORT_API_TOKEN: ${{ secrets.REPORT_API_TOKEN }} USER_INFO_SERVICE_ENDPOINT: ${{ secrets.USER_INFO_SERVICE_ENDPOINT }} USER_INFO_SERVICE_TOKEN: ${{ secrets.USER_INFO_SERVICE_TOKEN }} RESOURCE_ID: 'your-resource-id' # e.g., repository ID ACTIVITY_NAME: 'commit' # APICURON activity type LEAGUE: 'default' # APICURON league