Allow anonymous SSL authentication for the dynamically generated glie… #1350
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
# SPDX-FileCopyrightText: 2009 Fermi Research Alliance, LLC | |
# SPDX-License-Identifier: Apache-2.0 | |
name: REUSE Licensing test | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- branch_v3_9 | |
jobs: | |
bats_job: | |
runs-on: ubuntu-latest | |
name: Run REUSE to check license compliance | |
steps: | |
- name: Sparse checkout | |
shell: bash | |
run: | | |
REPO="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" | |
BRANCH="${GITHUB_REF/#refs\/heads\//}" | |
# Following code is based on logs of actions/checkout@v, with sparseCheckout stuff inserted in the middle | |
echo "Syncing repository: $GITHUB_REPOSITORY" | |
echo "Working directory is '$(pwd)' GITHUB_WORKSPACE=$GITHUB_WORKSPACE BRANCH=$BRANCH" | |
git version | |
git init $GITHUB_WORKSPACE | |
git remote add origin https://github.com/$GITHUB_REPOSITORY | |
git config --local gc.auto 0 | |
# Now interesting part | |
git config core.sparseCheckout true | |
# Add here contents of sparse-checkout line by line | |
echo ".github" >> .git/info/sparse-checkout | |
git -c protocol.version=2 fetch --no-tags --prune --progress --depth=10 origin +${GITHUB_SHA}:refs/remotes/origin/${BRANCH} | |
git checkout --progress --force -B ${BRANCH} refs/remotes/origin/${BRANCH} | |
id: sparse-checkout | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: "glideinwms" | |
- name: reuse lint action step | |
id: reuse | |
uses: fsfe/reuse-action@v2 | |
with: | |
args: --root ./glideinwms lint |