Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
Add support for security.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-linaro committed Feb 23, 2024
1 parent 464499c commit edca2fb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,21 @@ jobs:
- name: Sync build to staging directory
run: rsync -crui ${{ github.workspace }}/website/${{ env.SITE_URL }}/ /srv/s3-staging/${{ env.SITE_URL }} --delete

- name: set branch env
run: echo "BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
- name: security.txt
# If running on master branch, add signed security.txt file
if: env.BRANCH == 'master'
run: |
cd "$GITHUB_WORKSPACE/website"
/srv/github-action-scripts/sign-security.sh
if [ -f "security.txt.asc" ]; then
mkdir "/srv/s3-staging/${{ env.SITE_URL }}/.well-known"
mv security.txt.asc "/srv/s3-staging/${{ env.SITE_URL }}/.well-known/security.txt"
else
echo "No security.txt.asc produced"
fi
- name: Upload to S3
run: /srv/github-action-scripts/upload-to-s3-root.sh

Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ exclude:
- staging.96boards.org
- production.96boards.org
- merged_sources
- security.txt
sass:
style: compressed
load_paths:
Expand Down
2 changes: 2 additions & 0 deletions security.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Contact: mailto:[email protected]
Canonical: https://www.96boards.org/.well-known/security.txt

0 comments on commit edca2fb

Please sign in to comment.