|
1 | | ---- |
2 | | -name: Publish Templates |
3 | | - |
4 | | -on: |
5 | | - workflow_call: |
6 | | - |
7 | | -permissions: {} |
8 | | - |
9 | | -jobs: |
10 | | - publish-devcontainer-templates: |
11 | | - name: 📝 Publish templates |
12 | | - runs-on: ubuntu-latest |
13 | | - permissions: |
14 | | - packages: write # is needed by devcontainers/action to write templates as OCI artifacts |
15 | | - steps: |
16 | | - - uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 |
17 | | - with: |
18 | | - disable-sudo: true |
19 | | - egress-policy: audit |
20 | | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
21 | | - with: |
22 | | - persist-credentials: false |
23 | | - - uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0 |
24 | | - with: |
25 | | - registry: ghcr.io |
26 | | - username: ${{ github.actor }} |
27 | | - password: ${{ github.token }} |
28 | | - - uses: devcontainers/action@1082abd5d2bf3a11abccba70eef98df068277772 # v1.4.3 |
29 | | - with: |
30 | | - disable-repo-tagging: true |
31 | | - publish-templates: true |
32 | | - base-path-to-templates: templates |
| 1 | +--- |
| 2 | +name: Publish Templates |
| 3 | + |
| 4 | +on: |
| 5 | + workflow_call: |
| 6 | + |
| 7 | +permissions: {} |
| 8 | + |
| 9 | +jobs: |
| 10 | + publish-devcontainer-templates: |
| 11 | + name: 📝 Publish templates |
| 12 | + runs-on: ubuntu-latest |
| 13 | + permissions: |
| 14 | + packages: write # is needed by devcontainers/action to write templates as OCI artifacts |
| 15 | + steps: |
| 16 | + - uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 |
| 17 | + with: |
| 18 | + disable-sudo: true |
| 19 | + egress-policy: audit |
| 20 | + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 21 | + with: |
| 22 | + persist-credentials: false |
| 23 | + - uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0 |
| 24 | + with: |
| 25 | + registry: ghcr.io |
| 26 | + username: ${{ github.actor }} |
| 27 | + password: ${{ github.token }} |
| 28 | + - uses: devcontainers/action@1082abd5d2bf3a11abccba70eef98df068277772 # v1.4.3 |
| 29 | + with: |
| 30 | + disable-repo-tagging: true |
| 31 | + publish-templates: true |
| 32 | + base-path-to-templates: templates |
0 commit comments