Skip to content

Commit

Permalink
chore: remove secrets from build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
valosnah committed Oct 24, 2024
1 parent 31329ad commit 5ced60c
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@ name: Reusable build
on:
workflow_call:
inputs:
repo:
required: false
type: string
default: ${{ github.repository }}
actor:
required: false
type: string
default: ${{ github.actor }}
caller_sha:
required: false
type: string
default: ${{ github.sha }}
build_context:
required: false
type: string
Expand All @@ -39,9 +27,6 @@ on:
java_version:
required: false
type: string
secrets:
GH_TOKEN:
required: true

jobs:
build:
Expand All @@ -53,7 +38,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}
token: ${{ secrets.GH_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
id: buildx
Expand All @@ -70,7 +55,7 @@ jobs:
if: ${{ inputs.java_version != '' }}
run: mvn clean install --no-transfer-progress
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build
if: ${{ !inputs.build_env }}
Expand All @@ -86,7 +71,7 @@ jobs:
cache-to: type=gha, mode=max
provenance: false
build-args: |
GITHUB_TOKEN=${{ secrets.GH_TOKEN }}
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
- name: Build (with build env)
if: ${{ inputs.build_env }}
Expand All @@ -101,5 +86,5 @@ jobs:
cache-to: type=gha, mode=max
provenance: false
build-args: |
GITHUB_TOKEN=${{ secrets.GH_TOKEN }}
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
${{ inputs.build_env_name }}=${{ inputs.build_env_value }}

0 comments on commit 5ced60c

Please sign in to comment.