|
1 | 1 | # SPDX-License-Identifier: Apache-2.0 |
2 | 2 | # Copyright 2024 Canonical Ltd. |
3 | 3 | # Copyright 2024 Intel Corporation |
| 4 | +name: CI Pipeline |
| 5 | + |
4 | 6 | on: |
5 | 7 | pull_request: |
6 | 8 | branches: |
|
9 | 11 | branches: |
10 | 12 | - main |
11 | 13 |
|
| 14 | +permissions: |
| 15 | + contents: read |
| 16 | + |
12 | 17 | jobs: |
13 | 18 | build: |
14 | | - uses: omec-project/.github/.github/workflows/build.yml@main |
| 19 | + permissions: |
| 20 | + contents: read |
| 21 | + actions: read |
| 22 | + security-events: write |
| 23 | + id-token: write |
| 24 | + attestations: write |
| 25 | + uses: omec-project/.github/.github/workflows/build.yml@453e42d23f0366133ec7c053ee92a97f374f3ac5 # v0.0.1 |
15 | 26 | with: |
16 | 27 | branch_name: ${{ github.ref }} |
17 | 28 |
|
18 | 29 | docker-build: |
19 | | - uses: omec-project/.github/.github/workflows/docker-build.yml@main |
| 30 | + permissions: |
| 31 | + contents: read |
| 32 | + packages: write |
| 33 | + id-token: write |
| 34 | + attestations: write |
| 35 | + uses: omec-project/.github/.github/workflows/docker-build.yml@453e42d23f0366133ec7c053ee92a97f374f3ac5 # v0.0.1 |
20 | 36 | with: |
21 | 37 | branch_name: ${{ github.ref }} |
22 | 38 |
|
23 | 39 | static-analysis: |
24 | | - uses: omec-project/.github/.github/workflows/static-analysis.yml@main |
| 40 | + permissions: |
| 41 | + contents: read |
| 42 | + security-events: write |
| 43 | + actions: read |
| 44 | + id-token: write |
| 45 | + attestations: write |
| 46 | + uses: omec-project/.github/.github/workflows/static-analysis.yml@453e42d23f0366133ec7c053ee92a97f374f3ac5 # v0.0.1 |
25 | 47 | with: |
26 | 48 | branch_name: ${{ github.ref }} |
27 | 49 |
|
28 | 50 | lint: |
29 | | - uses: omec-project/.github/.github/workflows/lint.yml@main |
| 51 | + permissions: |
| 52 | + contents: read |
| 53 | + checks: write |
| 54 | + id-token: write |
| 55 | + attestations: write |
| 56 | + uses: omec-project/.github/.github/workflows/lint.yml@453e42d23f0366133ec7c053ee92a97f374f3ac5 # v0.0.1 |
30 | 57 | with: |
31 | 58 | branch_name: ${{ github.ref }} |
32 | 59 |
|
33 | 60 | hadolint: |
34 | | - uses: omec-project/.github/.github/workflows/hadolint.yml@main |
| 61 | + permissions: |
| 62 | + contents: read |
| 63 | + security-events: write |
| 64 | + id-token: write |
| 65 | + attestations: write |
| 66 | + uses: omec-project/.github/.github/workflows/hadolint.yml@453e42d23f0366133ec7c053ee92a97f374f3ac5 # v0.0.1 |
35 | 67 | with: |
36 | 68 | branch_name: ${{ github.ref }} |
37 | 69 |
|
38 | 70 | license-check: |
39 | | - uses: omec-project/.github/.github/workflows/license-check.yml@main |
| 71 | + permissions: |
| 72 | + contents: read |
| 73 | + id-token: write |
| 74 | + attestations: write |
| 75 | + uses: omec-project/.github/.github/workflows/license-check.yml@453e42d23f0366133ec7c053ee92a97f374f3ac5 # v0.0.1 |
40 | 76 | with: |
41 | 77 | branch_name: ${{ github.ref }} |
42 | 78 |
|
43 | 79 | fossa-scan: |
44 | | - uses: omec-project/.github/.github/workflows/fossa-scan.yml@main |
| 80 | + permissions: |
| 81 | + contents: read |
| 82 | + security-events: write |
| 83 | + id-token: write |
| 84 | + attestations: write |
| 85 | + uses: omec-project/.github/.github/workflows/fossa-scan.yml@453e42d23f0366133ec7c053ee92a97f374f3ac5 # v0.0.1 |
45 | 86 | with: |
46 | 87 | branch_name: ${{ github.ref }} |
47 | 88 |
|
48 | 89 | unit-tests: |
49 | | - uses: omec-project/.github/.github/workflows/unit-test.yml@main |
| 90 | + permissions: |
| 91 | + contents: read |
| 92 | + checks: write |
| 93 | + id-token: write |
| 94 | + attestations: write |
| 95 | + uses: omec-project/.github/.github/workflows/unit-test.yml@453e42d23f0366133ec7c053ee92a97f374f3ac5 # v0.0.1 |
| 96 | + with: |
| 97 | + branch_name: ${{ github.ref }} |
| 98 | + |
| 99 | + analysis: |
| 100 | + if: github.repository_owner == 'omec-project' |
| 101 | + permissions: |
| 102 | + actions: read |
| 103 | + artifact-metadata: read |
| 104 | + attestations: read |
| 105 | + checks: read |
| 106 | + contents: read |
| 107 | + deployments: read |
| 108 | + discussions: read |
| 109 | + id-token: write |
| 110 | + issues: read |
| 111 | + models: read |
| 112 | + packages: read |
| 113 | + pages: read |
| 114 | + pull-requests: read |
| 115 | + repository-projects: read |
| 116 | + security-events: write |
| 117 | + statuses: read |
| 118 | + uses: omec-project/.github/.github/workflows/scorecard-analysis.yml@453e42d23f0366133ec7c053ee92a97f374f3ac5 # v0.0.1 |
50 | 119 | with: |
51 | 120 | branch_name: ${{ github.ref }} |
52 | 121 |
|
53 | 122 | e2e-tests: |
54 | 123 | if: github.event_name == 'pull_request' |
55 | | - uses: omec-project/.github/.github/workflows/e2e-test.yml@main |
| 124 | + permissions: |
| 125 | + contents: read |
| 126 | + pull-requests: write |
| 127 | + checks: write |
| 128 | + id-token: write |
| 129 | + attestations: write |
| 130 | + uses: omec-project/.github/.github/workflows/e2e-test.yml@453e42d23f0366133ec7c053ee92a97f374f3ac5 # v0.0.1 |
56 | 131 | with: |
57 | 132 | branch_name: ${{ github.ref }} |
0 commit comments