Repository navigation
73 lines (62 loc) · 1.86 KB
/
Copy pathchecks.yml
File metadata and controls
73 lines (62 loc) · 1.86 KB
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
name: checks
on:
push:
branches: [main]
pull_request:
merge_group:
schedule:
- cron: "17 6 * * *"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: checks-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
- name: Check out the repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Check the marketplace listing
env:
GH_TOKEN: ${{ github.token }}
run: shell/check-marketplace.sh
- name: Lint the shell scripts
run: shellcheck --severity=warning shell/*.sh
- name: Test the listing check
run: shell/check-marketplace.test.sh
checks:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
# Linux-only action; it self-skips on macOS with a confusing warning.
if: runner.os == 'Linux'
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# Runs the shape checks on both systems. The lookup on the remote runs in
# the validate job.
- name: Check the marketplace listing shape
env:
OFFLINE: "1"
run: shell/check-marketplace.sh