miss permission to read secrets #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# © 2024 INRAE | |
# SPDX-FileContributor: Marcellino Palerme <[email protected]> | |
# | |
# SPDX-License-Identifier: MIT | |
name: publish | |
on: | |
pull_request: | |
branches: 'main' | |
permissions: | |
contents: write | |
pull-requests: write | |
checks: write | |
packages: write | |
actions: read | |
id-token: write | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout repository | |
- name: Build and publish Docker image with multiple tags | |
uses: VaultVulp/[email protected] | |
with: | |
github-token: ${{ secrets.MY_TOKEN }} # Provide GITHUB_TOKEN to login into the GitHub Packages | |
image-name: scala-sbt # Provide Docker image name | |
additional-image-tags: 1.7.1 # two additional tags for an image | |
dockerfile: DockerfileQuay # Provide Dockerfile path |