Skip to content

remove unneeded privileges #8

remove unneeded privileges

remove unneeded privileges #8

Workflow file for this run

name: "Publish"
#on:
# release:
# types: [published]
on: [push, pull_request]
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
path: ./myaddon
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
uses: home-assistant/builder@master
with:
args: |
--all \
--target myaddon \
--docker-hub ghcr.io/f18m