Skip to content

Commit 9e44d46

Browse files
committed
protect secrets and remove unused secrets
1 parent dc499b1 commit 9e44d46

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build-gh-pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ concurrency:
2525
jobs:
2626
# Build job
2727
build:
28+
environment:
29+
name: github-pages
2830
runs-on: ubuntu-latest
2931
steps:
3032
- name: Checkout repo from GitHub Tools SAP

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ jobs:
115115
input='${{ github.event.inputs.platforms }}'
116116
# SapMachine 2022-06-24: Also handle 'pull_request' event.
117117
elif [[ $GITHUB_EVENT_NAME == push ]] || [[ $GITHUB_EVENT_NAME == pull_request ]]; then
118-
if [[ '${{ !secrets.JDK_SUBMIT_FILTER || startsWith(github.ref, 'refs/heads/submit/') }}' == 'false' ]]; then
118+
if [[ 'startsWith(github.ref, 'refs/heads/submit/') }}' == 'false' ]]; then
119119
# If JDK_SUBMIT_FILTER is set, and this is not a "submit/" branch, don't run anything
120120
>&2 echo 'JDK_SUBMIT_FILTER is set and not a "submit/" branch'
121121
echo 'false'
122122
return
123123
else
124-
input='${{ secrets.JDK_SUBMIT_PLATFORMS }}'
124+
input=''
125125
fi
126126
fi
127127

0 commit comments

Comments
 (0)