-
Notifications
You must be signed in to change notification settings - Fork 5
83 lines (80 loc) · 2.61 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Tests
on:
pull_request:
types: [opened, synchronize, closed]
branches: [main, master]
pull_request_target:
types: [opened, synchronize, closed]
branches: [main, master]
# Simulate a "restricted" org/enterprise policy of read-only GITHUB_TOKEN access.
# Flowzone should run 99% of steps with only the below permissions.
# Exceptions:
# - AWS login via OIDC needs 'id-token: write'
# - Publishing images to ghcr.io needs 'packages: write'
# Exceptions need to be provided in the calling workflow with the permissions below + the noted permission increase.
# https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#permissions
permissions:
actions: none
attestations: none
checks: none
contents: read
deployments: none
id-token: none # AWS GitHub OIDC provider
issues: none
discussions: none
# packages: read
packages: write # Allow Flowzone to publish to ghcr.io
pages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
jobs:
flowzone:
name: Flowzone
uses: ./.github/workflows/flowzone.yml
# prevent duplicate workflow executions for pull_request and pull_request_target
if: |
(
github.event.pull_request.head.repo.full_name == github.repository &&
github.event_name == 'pull_request'
) || (
github.event.pull_request.head.repo.full_name != github.repository &&
github.event_name == 'pull_request_target'
)
secrets: inherit
with:
working_directory: ./tests
docker_images: |
ghcr.io/product-os/flowzone
balena_slugs: |
product_os/flowzone
cargo_targets: |
x86_64-unknown-linux-gnu,
armv7-unknown-linux-gnueabi,
aarch64-unknown-linux-gnu
cloudflare_website: "flowzone"
bake_targets: default,multiarch
jobs_timeout_minutes: 30
docker_publish_platform_tags: true
docker_runs_on: >
{
"linux/amd64": ["self-hosted","X64"],
"linux/arm64": ["self-hosted","ARM64"],
"linux/arm/v7": ["self-hosted","ARM64"],
"linux/arm/v6": ["self-hosted","ARM64"]
}
custom_test_matrix: >
{
"value": ["foo", "bar"],
"os": [
["ubuntu-latest"],
["macos-latest"],
["windows-latest"],
["self-hosted"]
],
"environment": ["test"]
}
release_notes: true
restrict_custom_actions: false