mirror of
https://github.com/storytold/craft-common-actions.git
synced 2026-11-29 17:54:25 +01:00
Ubuntu's MOTD news and Ubuntu Pro (ESM) hooks reach motd.ubuntu.com and esm.ubuntu.com; TLS revocation checks for Amazon-issued certificates go to *.amazontrust.com over plain HTTP. Every Harden-Runner allow list now names them.
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: house-rules test
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- actions/house-rules/**
|
|
- tests/test_house_rules.py
|
|
- .github/workflows/house-rules.yml
|
|
- .github/workflows/test-house-rules.yml
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- actions/house-rules/**
|
|
- tests/test_house_rules.py
|
|
- .github/workflows/house-rules.yml
|
|
- .github/workflows/test-house-rules.yml
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Harden runner
|
|
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
|
with:
|
|
egress-policy: block
|
|
allowed-endpoints: >
|
|
*.amazontrust.com:80
|
|
esm.ubuntu.com:443
|
|
motd.ubuntu.com:443
|
|
api.github.com:443
|
|
github.com:443
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: House-rules unit tests
|
|
run: python3 -m unittest tests/test_house_rules.py
|