diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 27377b6..1da3012 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -48,6 +48,11 @@ on: required: false type: string default: ${{ github.repository_owner }} + build_args: + description: 'The build arguments for the image' + required: false + type: string + default: '' jobs: @@ -124,6 +129,7 @@ jobs: context: ${{ steps.get_dir.outputs.docker_directory }} file: ${{ inputs.dockerfile }} tags: ${{ steps.prep.outputs.tags }} + build-args: ${{ inputs.build_args }} - name: Scan Docker Image uses: mondoohq/actions/docker-image@v11.0.0 @@ -158,6 +164,7 @@ jobs: push: ${{ github.event_name != 'pull_request' && needs.pre-commit.outputs.version != '' }} tags: ${{ steps.prep.outputs.tags }} platforms: ${{ inputs.platforms }} + build-args: ${{ inputs.build_args }} release: needs: [ pre-commit, build ] diff --git a/.github/workflows/pr-valid.yml b/.github/workflows/pr-valid.yml index 0feeccb..32894d0 100644 --- a/.github/workflows/pr-valid.yml +++ b/.github/workflows/pr-valid.yml @@ -12,8 +12,13 @@ on: - assigned +permissions: + pull-requests: write + statuses: write + + jobs: pr-validation: uses: ./.github/workflows/pr-validation.yml secrets: - BOT_ACCESS_TOKEN: "${{ fromJSON(secrets.VAULT_KV_1D187965_OP_GITHUB_INFRALOVERS).PAT }}" + BOT_ACCESS_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}