Skip to content

Fix Token-Permissions OpenSSF remarks #4177

Fix Token-Permissions OpenSSF remarks

Fix Token-Permissions OpenSSF remarks #4177

Workflow file for this run

name: Build application
on:
push:
pull_request:
merge_group:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: >-
${{ github.ref != 'refs/heads/master' &&
github.event_name != 'merge_group' &&
!startsWith(github.ref, 'refs/heads/gh-readonly-queue') }}
jobs:
pre-commit:
uses: ./.github/workflows/pre-commit.yml
permissions:
contents: read
packages: read
ubuntu:

Check failure on line 27 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Build application

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 27, Col: 3): Error calling workflow 'learning-process/parallel_programming_course/.github/workflows/ubuntu.yml@90d4b077fc6384520eef11323a65ebd6510fed3d'. The nested job 'gcc-build-codecov' is requesting 'issues: write, pull-requests: write', but is only allowed 'issues: none, pull-requests: none'.
needs:
- pre-commit
uses: ./.github/workflows/ubuntu.yml
permissions:
contents: read
packages: read
mac:
needs:
- pre-commit
uses: ./.github/workflows/mac.yml
windows:
needs:
- pre-commit
uses: ./.github/workflows/windows.yml
perf:
needs:
- ubuntu
- mac
- windows
uses: ./.github/workflows/perf.yml
permissions:
contents: read
packages: read
pages:
needs:
- perf
uses: ./.github/workflows/pages.yml
permissions:
contents: read
pages: write
id-token: write