Skip to content

docs: add SECURITY.md #15

docs: add SECURITY.md

docs: add SECURITY.md #15

Workflow file for this run

# Copyright 2024-2025 Canonical Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Release to latest/edge
on:
push:
branches:
- main
jobs:
ci-tests:
uses: ./.github/workflows/ci.yaml
release-to-charmhub:
name: Release to Charmhub
needs:
- ci-tests
runs-on: ubuntu-24.04
strategy:
fail-fast: true
matrix:
charm: [filesystem-client, cephfs-server-proxy, nfs-server-proxy]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select Charmhub channel
uses: canonical/charming-actions/[email protected]
id: channel
- name: Install Just
uses: extractions/setup-just@v2
with:
just-version: 1.38.0
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.5.8"
- name: Install Charmcraft
run: sudo snap install charmcraft --classic --channel latest/stable
- name: Stage charm
run: just repo stage ${{ matrix.charm }} --clean
- name: Setup LXD
uses: canonical/[email protected]
with:
channel: 5.21/stable
# TODO: https://github.com/canonical/charmcraft/issues/2125 -
# Remove pin to charmcraft 3.2.3 once `FileExistsError` is fixed
# when accessing the charmcraft build cache in parallel builds.
- name: Revert to charmcraft 3.2.3
run: |
sudo snap refresh charmcraft --revision=5858
sudo snap refresh charmcraft --hold
- name: Publish updated charm libraries to Charmhub
uses: canonical/charming-actions/[email protected]
with:
credentials: "${{ secrets.CHARMCRAFT_AUTH }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
charm-path: "./_build/${{ matrix.charm }}"
- name: Publish charm to Charmhub
uses: canonical/charming-actions/[email protected]
with:
credentials: "${{ secrets.CHARMCRAFT_AUTH }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
channel: "${{ steps.channel.outputs.name }}"
charm-path: "./_build/${{ matrix.charm }}"
tag-prefix: "${{ matrix.charm }}"
destructive-mode: false